lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <>
Subject RE: Question about Case Sensitive?!
Date Thu, 10 Feb 2011 22:01:52 GMT
Hi Gong Li,

You can create your own Analyzer that does not add LowerCaseFilter to the
FilterChain. To achieve this, use the source code from Lucene source, rename
the class (e.g. org.yourpackage.NoLowercasingStandardAnalyzer) and remove
LowerCaseFilter from the tokenStream() and reuseableTokenStream() factory


Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen

> -----Original Message-----
> From: Gong Li []
> Sent: Thursday, February 10, 2011 7:06 PM
> To:
> Subject: Question about Case Sensitive?!
> Hi,
> I use standardAnalyzer, queryParser, highlighter in my program, but they
> lowercase the keywords. Now i need to search the keywords CASE
> SENSITIVE. Is there any methods to achieve this and also use
> standardAnalyzer and queryParser? Or some other ways? HOW???
> Thx.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message