Re: Indexing multiple instances of the same field for each docume nt

2004-02-28 Thread Moray McConnachie \(OA\)
- Original Message - From: Erik Hatcher [EMAIL PROTECTED] To: Lucene Users List [EMAIL PROTECTED] Sent: Friday, February 27, 2004 4:07 PM Subject: Re: Indexing multiple instances of the same field for each docume nt Does this mean that whenever I want to do keyword searches, I must

Re: Indexing multiple instances of the same field for each docume nt

2004-02-28 Thread Erik Hatcher
On Feb 28, 2004, at 5:38 PM, Moray McConnachie (OA) wrote: - Original Message - I guess the best way to handle this problem, other than getting the application to transform values prior to query or indexing, is actually to tokenize the field after all, but use the same KeywordAnalyzer to

RE: Indexing multiple instances of the same field for each docume nt

2004-02-27 Thread Moray McConnachie
Are you using QueryParser? Try using a TermQuery(product, PROD_A) when indexing as a Keyword and see what you get. If that finds it, then you are suffering from analysis paralysis. QueryParser, Keyword fields, and analyzers are a very interesting combination. Yes, it works correctly

Re: Indexing multiple instances of the same field for each docume nt

2004-02-27 Thread Erik Hatcher
On Feb 27, 2004, at 10:00 AM, Moray McConnachie wrote: Are you using QueryParser? Try using a TermQuery(product, PROD_A) when indexing as a Keyword and see what you get. If that finds it, then you are suffering from analysis paralysis. QueryParser, Keyword fields, and analyzers are a very