Customer analyzer?

I’d like to make my own analyzer for stemming, but where do I put it or
how do I reference it?

On 10/14/06, Eric O. [email protected] wrote:

I’d like to make my own analyzer for stemming, but where do I put it or
how do I reference it?

You create the analyzer like in the example here:

http://ferret.davebalmain.com/api/classes/Ferret/Analysis/StemFilter.html

Then you pass it to your Index or IndexWriter as the :analyzer
parameter:

index = Ferret::Index::Index.new(:analyzer => MyAnalyzer.new)
#or
writer = Ferret::Index::IndexWriter.new(:analyzer => MyAnalyzer.new)

Hope that makes sense.
Dave

Thanks. I’ll try that,

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs