You''re close: here''s what works for me. Note the
":ferret => " key:
acts_as_ferret({:fields => {:name => {:boost => 10,
:store => :yes},
:summary => {:boost => 2,
:store => :yes},
:published => {:boost => 1},
:published_on => {:boost => 1}},
:ferret => { :analyzer =>
Ferret::Analysis::StandardAnalyzer.new([]) }
} )
Thanks,
Doug
On 8/20/07, Mark Johnson <mark.johnson at shinetech.com>
wrote:> I have looked at the documentation and done some searching, but I
can''t
> seem to stop the STOP_WORDS from cutting out common words. I am using
> acts_as_ferret and I have add the following to my code:
>
> STOP_WORDS = []
>
> acts_as_ferret({ :fields => { :name => {
:boost
> => 10 },
> :project_client_company_id => { :boost
> => 0 }
> }
> },
> {:analyzer =>
> Ferret::Analysis::StandardAnalyzer.new(STOP_WORDS)})
>
> Regardless, words like ''into'' are not being indexed (I
have looked at
> the index files). I have been re-indexing, so it isn''t a problem
like
> that.
>
> If anyone can point out what I am doing wrong that would be great.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ferret-talk mailing list
> Ferret-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ferret-talk
>