lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <...@teamware.com>
Subject Re: Turning PrefixQuery into a TermQuery
Date Wed, 11 Apr 2007 21:13:06 GMT
Steffen Heinrich wrote:
> Normally an IndexWriter uses only one default Analyzer for all its 
> tokenizing businesses. And while it is appearantly possible to supply 
> a certain other instance when adding a specific document there seems 
> to be no way to use different analyzers on different fields within 
> one document.

Use the PerFieldAnalyzerWrapper.

http://lucene.apache.org/java/docs/api/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.html

It allows different analyzers to be used for different fields.
Antony



---------------------------------------------------------------------
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