lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Field Aware TokenFilter
Date Tue, 05 Apr 2011 09:37:35 GMT
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 <condit@sdsc.edu> wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message