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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]