On Tue, Nov 07, 2006 at 06:25:20PM -0500, Curtis Hatter wrote:
> I believe the problem was in how I was creating my index. My acts_as_ferret
> declaration was as follows:
> 
> acts_as_ferret( :fields => {
>   :name => {},
>   :desc => {:index => :untokenized_omit_norms},
>   :body => {:store => :yes},
>   :role => {},
> })
> 
> With the above a search that used stop words, ex. "auditor of state", would
> return no hits. When I removed the ":index => :untokenized_omit_norms" and
> rebuilt the index that same search started to work with acts_as_ferret. I
> haven't played around with just using ferret and seeing what would happen
> because of time constraints on this current project.
> 
> If there's any suggestions or anything I'd gladly try them. I would like to
> keep the "desc" untokenized and omit the norms because I don't do boosting
> and may wish to sort by the "desc" field.

you really should tokenize the desc field if you want to run searches
across it. If you have to sort by the desc field and therefore
can't tokenize it, you could index it twice, once tokenized for searching 
and once untokenized (and maybe truncated to save some space in your
index) for sorting.

Jens

 

-- 
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
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to