Brad Adams wrote:
>
>> or, with aaf:
>> acts_as_ferret :analyzer => StandardAnalyzer.new([])
>>
>
> I've tried this with aaf, and it still uses stopwords. Anyone else have
> this problem? I'm running 10.10 and aaf, plugin (as current as
> today...not sure what v.).
>
> I've tried:
> acts_as_ferret :fields => [:name], :analyzer =>
> Ferret::Analysis::StandardAnalyzer.new([])
>
> acts_as_ferret :fields => [:name], :analyzer => StandardAnalyzer.new([])
>
> even different analyzers. All of them still seem to use the stopwords.
> Anyone have an idea?
I've got it to work...after countless tries with different syntax, and
analyzers.
It worked only when I passed 'nil'.
acts_as_ferret( { :fields => [:name] }, { :analyzer =>
Ferret::Analysis::StandardAnalyzer.new([nil]) } )
Hope that'll help anyone else that comes across this.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk