Depends on whether you want fuzzy matches on Customer or not.
Assuming this value contains things like first and last name, I would
think you would want to tokenize so that you can search for those
separately. If it truly contains something that is a single token,
then this should be fine. You only need to Store items if you want to
recover the value afterward for display or something like that.
-Grant
On Dec 27, 2007, at 9:33 AM, webspeak wrote:
Hello,
I would like to search documents by "CUSTOMER".
So I search on the field "CUSTOMER" using a KeywordAnalyzer.
The CUSTOMER field is indexed with those params:
Field.Index.UN_TOKENIZED
Field.Index.Store
Is it the Best Practice ?
--
View this message in context:
http://www.nabble.com/Search-by-KeyWord%2C-the-best-practice-tp14513720p14513720.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------
Grant Ingersoll
http://lucene.grantingersoll.com
Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]