Brad Adams wrote:
> 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.
Thanks everyone for posting this.
I have a question.
> acts_as_ferret( { :fields => [:name] }, { :analyzer =>
> Ferret::Analysis::StandardAnalyzer.new([nil]) } )
works by allowing stopwords in my searches, but what if I want to allow
stopword searching in only ONE field?
This is what I have:
acts_as_ferret({:fields => {:name => {:boost => 10, :store => :yes},
:description => {},
:title => {:boost => 3}}}, { :analyzer =>
Ferret::Analysis::StandardAnalyzer.new([nil]) } )
I want to allow stopword searching for :title, and remove stopwords for
:name and :description. Is there a way to do it?
I'm new to Ferret, and can't really figure out how to use StopFilter in
QueryParser.
qp = QueryParser.new(:fields => [:name, :description], :analyzer =>
StopFilter.new())
Thanks a lot!
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk