MTLookup: Fulltext Search is not that Easy

10/30/2005

A user told me about a query that did not return the expected result list. He was simply searching for the three letters »3.2« (three dot two). This should return a long list of hits. However, the result list was empty. So I had to enhance the algorithm a little bit.

The problem was caused by the way MTLookup worked. The dot was regarded as a delimiter, so in this special case the three-character string was broken into three parts: a three, a dot, and a two. As each of the individual parts was too short - MTLookup only placed words with three characters into the index. Nothing was actually searched for.

I changed the code so that such search phrases are handled correctly. For example, you can now successfully search for...

If you find something strange with the search results, please send a message to me. The feedback button is right below the search button. Thank you.

mgs | 10/30/2005

Feedback is welcome!

What do you think about this entry? Was it interesting or boring? I would like to hear your comments. If the text was helpful, please consider setting a link to http://www.movable-type-weblog.com/.

No spam please!

For protecting this weblog I have installed the MT-Approval Plugin. You have to view a new comment in preview mode, before it is saved on the server. Moreover, I will view your comment manually, before it is published. You can find more information on the subject in the entry Weblog Spamming Basics.

With an active TypeKey session, your comment will be published immediately.

Post a new comment

TypeKey has temporarily been disabled at this location. Please create your comment without using TypeKey or log in from the preview dialog.




Remember Me?