lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: exact match ..
Date Mon, 20 Feb 2006 18:28:13 GMT

On Feb 20, 2006, at 1:22 PM, Mufaddal Khumri wrote:
> Just realized that the various fields I have are part of the same  
> document. But in order to leverage the KeywordAnalyzer, I would  
> have to now have two sets of document.
> One document with the fields: title, content <--- analyzed by  
> custom analyzer
> Other document with the fields: categoryNames < ---- analyzed by  
> keyword analyzer
>
> Is there a way I could have a single document object have some  
> fields analyzed by my custom analyzer and the one field -  
> "categoryNames" analyzed by the keyword analyzer?

Yes, this is what PerFieldAnalyzerWrapper provides for you, as  
described in detail in several sections of Lucene in Action:

	http://www.lucenebook.com/search?query=PerFieldAnalyzerWrapper

Erik


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