On 3/5/07, Ted <[EMAIL PROTECTED]> wrote:
> I need to get a set of terms being indexed using Ferret. I used
> IndexReader.terms and it returns a list of TermEnum nicely. The only
> problem is that my analyzer includes a stemming filter.
> So now, the terms I'm getting back are all stemmed. Is there anyway to
> get the original unstemmed terms back from the index somehow? Thanks.

Hi Ted,

Unfortunately this isn't really possible. What I'd recommend is
indexing the field twice; once with a stemming analyzer and once
without. See PerFieldAnalyzer;

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

Hope that helps.

Cheers,
Dave

-- 
Dave Balmain
http://www.davebalmain.com/
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to