Ferret Search Terms

I’m having a bit a trouble getting some search terms to work with
acts_as_ferret. Particulary where multiple words are in the query. For
instance if I search for “Time to Kill” it doesn’t find the any records.
However, if I search just for time, Time to Kill comes up.

I’m not sure what I’m missing here.

Any help would be greatly appreciated.

I should also add that some multiple word queries do work, and I haven’t
been able to spot any pattern there.

Thanks again.

Guest wrote:

I’m having a bit a trouble getting some search terms to work with
acts_as_ferret. Particulary where multiple words are in the query. For
instance if I search for “Time to Kill” it doesn’t find the any records.
However, if I search just for time, Time to Kill comes up.

I’m not sure what I’m missing here.

Any help would be greatly appreciated.

Hi!

Do you use a special analyzer for indexing/searching ?

A possible explanation might be that at indexing time the
‘to’ is stripped away as being not a relevant term, but at
searching time it isn’t. As aaf ANDs query terms together by default,
you then won’t get a hit.

What does the parsed query look like if you search via aaf (queries
should get logged in development.log) ?

Jens

On Mon, Jul 24, 2006 at 07:33:28PM +0200, Guest wrote:

http://rubyforge.org/mailman/listinfo/ferret-talk

webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs