David Balmain wrote: > If you could produce a simple test case then that would be great. I'll > try and find the problem but it can be difficult when I can't > reproduce the problem here.
I'm trying but not having much luck. Maybe someone can help me understand something that might shed some light on the problem. I can search for blood pressure in three different ways: +content:"blood pressure" This method returns a limited number of results (7 right now) and misses lots of products that have the exact words "blood pressure" in the content field. It includes one product that does not have the exact phrase "blood pressure" but does have the word "pressure" and then, several words later, the word "blood". +content:"pressure blood" This method returns just 2 results, neither of which has "pressure blood" in their content. Both have "blood pressure" though. +content:"blood" +content:"pressure" This method returns 99 results, which as far as I can tell is every product with "blood pressure" in the content, plus a few that have both "blood" and "pressure" So what is the "right" way to search multi-term phrases like this. I suspect all my oddness centers on my lack of understanding of how this _should_ work. Ideally, I'm looking for an exact match on the phrase, and I was going to play with adding some slop if Ferret supports it. Note that my content field is tokenized. Does the analyzer on the Index::Index object matter when searching, or should I be preprocessing my search phrase in some way? Thanks! Geoff -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

