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