Re: Field Aware TokenFilter

2011-04-05 Thread Ian Lea
Can you use PerFieldAnalyzerWrapper? That would be the normal way to approach this, specifying a different, synonym aware, analyzer for the relevant field(s). -- Ian. On Mon, Apr 4, 2011 at 11:31 PM, Christopher Condit wrote: > I need to add synonyms to an index depending on the field being in

Field Aware TokenFilter

2011-04-04 Thread Christopher Condit
I need to add synonyms to an index depending on the field being indexed. I know that TokenFilter is not "field aware", but is there a good way to get at the field or do I need to add something to allow my Analyzer to tell the TokenFilter which field is currently being examined? Thanks, -Chris ---