Improving SharePoint Search

This week I had a question from someone who tried to find a PDF based on keywords in the file-name and it did not show up in the results.

The situation

I found out that this is caused by the (in)famous wordbreaker.
Wordbreaker is a language specific active-x control that breaks compound words (obvious!).
Ie. when i have the browser language set to English, the word "thumbnail" would be broken into "thumb" and "nail". This wordbreaker is designed to improve search results. And when searching for content this works as expected. So if I'm searching for "thumbnail" it will return results with "thumb", "nail" and "thumbnail".
However, when the searchterm is not in the content or meta data (only in the in the filename: not a best practice, I know), the wordbreaker is not working quite as it should.


I'll explain this in the following examples:
I have:

  1. an image called ladybug.jpg
  2. an image called lady bug.jpg
  3. an empty document called ladybug.doc
  4. an empty document called lady bug.doc
  5. a document with ladybug in the content called ladybug.doc

Test1, browser language set to English, query "ladybug"

  1. not shown in result
  2. shown in result
  3. not shown in result
  4. shown in result
  5. shown in result.

Test2, browser language set to Dutch, query "ladybug"

  1. shown
  2. not shown
  3. shown
  4. not shown
  5. shown

So what I've done here is check if it is indeed the wordbreaker by changing the language, furthermore I've added an empty document to test if it isn't the extension / iFilter.
If the word is put in the content, it will show in the results and funny enough also have the filename / title highlighted.


It appears that when no results are found in the content, only the separate words are used to search and not the compound word itself..
Okay, problem is indeed the wordbreaker but how do we fix it? I couldn't find any solution on the internet, although I found plenty of people with the same issue.
Adding quotes doesn't work, maybe I should tell the users to change their browser language?
Nah, c'mon! The wordbreaker helps improve results most of the time, so this not really an option.
Finally, I found a workaround though that I'm happy to share with you guys: when adding a ".*" (dot and asterix) or a ".ext" (dot extension) SharePoint Search does not use the wordbreaker. Pretty lame, but it kinda works.
Hopes this will help!


Post a Comment