Search field should do an "AND" search, not an "OR" search
I've been wondering for the longest time why I can't ever seem to find what I'm looking for when I search for questions on askbot.org. I think I finally figured it out.
I was doing a search for "feedback captcha" to see if anyone else has posted a feature request to add a captcha to the feedback form for anonymous users.
As expected, the search results were hit-and-miss. Some were on target, most were completely unrelated. But then I noticed something: none of the posts in the search results contained both "feedback" and "captcha"; each search hit referenced only one of the search terms.
I ran a quick experiment to test my hypothesis:
- "feedback captcha" - 51 results
- "feedback" - 46 results
- "captcha" - 6 results
This is counter-intuitive behavior for search. Adding more words to a search query makes it more specific, so it should result in fewer search results.
Using the above example, Suggestions for antispam measures? was the only question that matched both search terms — that should have been the only result when I searched for "feeback captcha".
Comments
This might have been fixed in 0.7.43.1; I notice that my hosted http://expats.askbot.com">site does not have this problem.
^ Augh! What happened to my link???
Re: link - thanks for noticing. Links in the comments are processed a bit differently at the moment, I'll look into this.
I think in an earlier post Evgeny mentioned that work is being done on integrating Haystack. So when probabilistic search is used say by plugging Xapian or Lucene, search will behave much more sensibly - right?!
Yes, Basel, search results fully depend on the search engine under the hood.