I have my site up and running but noticed what may be a bug in the search module and I'm wondering if anyone else can confirm the behaviour I am seeing. If so I will submit a bug report, but I wanted to check with all of you here first.

In general search works fine. My site is being indexed regularly via cron and I can do searches that produce results. However, if I do a search that includes a "noise" word - no results are returned.

For example. I have a page that includes the following sentence:

"We are committed to the education of clients and the..." etc.

If I search for: committed education clients
The page is returned in the results.

If I search for: committed to the education of clients
The search yielded no results!!!

I have the following noise word list:

the, and, a, to, of, in, i, is, that, it, on, you, this, for, but, with, are, have, be, at, or, as, was, so, if, out, not

I have tested searches that should yield results with and without each and every one of these words. The result is always the same. If one of the noise words is included in the search - no results are returned.

Has anyone else experienced this? I don't imagine that this is the way this should work. I can understand search ignoring the 'noise' words, but search shouldn't ignore the entire query.

andre

Comments

dries’s picture

This could be a bug, yes. The reason may be that the search module is using implicit AND'ing so if you search for 'foo bar' it will return results which contain both the word 'foo' and the word 'bar'. If 'foo' is defined to be a noise word, it won't find any hits for 'foo', and therefore no hits for 'foo' and 'bar' either.

andremolnar’s picture

Thanks Dries,

Bug reported here -> http://drupal.org/node/11636