Hello,
I think I had this module installed right, but somehow I get no results found for some of the keywords and phrases that appear on my website. The site currently is 100% indexed and ran cron right after installed and every hour automatically.
Just for example,
If I search cameras, I get results that contains keywords both "camera" and "cameras".
But if I search "windows", I get no results, and I have about more than 10 nodes that have the keyword "windows 7".
Now the funny thing is if I search "Microsoft", I get tons of result that have the "windows" keyword.
These are just some sample keyword search terms. Some keywords and phrases work some don't.
Any idea? Does anybody have the same problem? or is there something I might have done wrong?
by the way, the site is http://youtipz.com
Thanks.
Comments
Comment #1
jhodgdonDid you clear the search index before starting your cron runs, as described in the INSTALL.txt file in the project zip, as well as on the project page http://drupal.org/project/porterstemmer ?
The reason I am asking is that if some of the pages were indexed before Porter Stemmer was installed, then the keywords in the index will not match what Porter Stemmer is expecting for those pages. For instance, if you search for "windows" with Porter Stemmer installed, internally it will be looking for "window" in the index, but if the site was indexed before Porter Stemmer was installed, it will have "windows" in the index instead, and it has to match exactly. On the other hand, "Microsoft" will not be altered by Porter Stemmer, so it doesn't matter whether it was indexed before or after Porter Stemmer was installed.
Anyway, clear the search index and re-index everything, and most likely your problems will go away.
See also this issue, which may be confusing the output as well:
#437084: Excerpt fails to find stemmed keyword
Comment #2
yrre7 commentedI guess I didn't see anywhere in the INSTALL.txt that mentions clearing the search index. Does that mean I have to delete the whole search_index database?
Thanks,
Comment #3
yrre7 commentedNevermind...I got it to work now.
Thanks very much for your help.
Comment #4
jhodgdon