RE: QueryParser question - case-sensitivity

2002-05-10 Thread cutting
Define an Analyzer that does not lowercase the id field, e.g., something like: public class MyAnalyzer extends Analyzer { private Analyzer standard = new StandardAnalyzer(); public TokenStream tokenStream(String field, final Reader reader) { if ("id".equals(field)) { retur

RE: QueryParser question - case-sensitivity

2002-05-09 Thread Landon Cox
Ok, this is the solution and it seems to have worked like a charm. I took Doug's fragment as a starting point, but enhanced it to be general purpose. Instead of the keyword field name being hardwired into the tokenStream method, the derived Analyzer class, in this case DCRAnalyzer, accepts a has

RE: QueryParser question - case-sensitivity

2002-05-09 Thread Landon Cox
- |From: Landon Cox [mailto:[EMAIL PROTECTED]] |Sent: Thursday, May 09, 2002 12:29 PM |To: Lucene Users List |Subject: RE: QueryParser question - case-sensitivity | | | |Hi Otis, | |On both the indexing side and creation of the query parser, I'm using the |StandardAnalyzer class. Seems like it wou

RE: QueryParser question - case-sensitivity

2002-05-09 Thread Doug Cutting
[I'm resending this from a different account, since my first attempt is bogged down somewhere. A second copy will probably show up tomorrow, but in the interests of solving this problem sooner, I'm resending it. Sorry for the duplicaton.] Define an Analyzer that does not lowercase the id field,

Re: QueryParser question - case-sensitivity

2002-05-09 Thread Dave Peixotto
AIL PROTECTED]> To: "Lucene Users List" <[EMAIL PROTECTED]> Sent: Thursday, May 09, 2002 11:28 AM Subject: RE: QueryParser question - case-sensitivity > > Hi Otis, > > On both the indexing side and creation of the query parser, I'm using the > StandardAnalyz

RE: QueryParser question - case-sensitivity

2002-05-09 Thread Landon Cox
g at the source next. Thanks, Landon |-Original Message- |From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]] |Sent: Thursday, May 09, 2002 11:24 AM |To: Lucene Users List |Subject: Re: QueryParser question - case-sensitivity | | |Wouldn't that be the Analzyer that you are using? |I don&#