2009/4/9 Jens Kraemer <[email protected]>

> Hi Max!

Hi Jens, thanks for responding so quickly.

>
>
>
> For some reason the word 'fly' is turned into 'fli' by the analyzer.


Indeed it is:
>> ts = Ferret::Analysis::StemmingAnalyzer.new.token_stream nil, 'flea fly'
=> #<Ferret::Analysis::StemFilter:0xb48b3b48>
>> while token = ts.next
>>  puts token
>> end
token["flea":0:4:1]
token["fli":5:8:1]



> But that's ok, as long as it works the same way at indexing time. Next use
> the ferret_browser tool to inspect your index and check whether the term
> 'fli' really appears in your index


I've not seen this tool before, it sounds useful - would you mind pointing
me at some docs for it?   I can find the class in the ferret rdoc but
there's no explanation for it as far as i can see.


> acts_as_ferret :store_class_name => true,
>              :ferret => { :analyzer =>
> Ferret::Analysis::StemmingAnalyzer.new },
>              :fields => { ... }
>
> rebuild your index and everything should be working as expected.


It is indeed!   Thanks very much Jens, i really appreciate the support.

Hope you have a great easter weekend!
cheers
max
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to