On 10/14/06, Eric Obershaw <anrake at gmail.com>
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