lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Case-sensitive search
Date Thu, 18 Aug 2005 19:53:37 GMT

On Aug 18, 2005, at 3:50 PM, wrote:
> Is there any way to do a case-sensitive search?

All Lucene searches are case-sensitive, actually.

But most often a lowercasing analyzer is used.  So the trick is to  
change the analysis process to not lowercase.  It gets more fun when  
you need case sensitive or insensitive searching both in the same  
situation, where the trick is to either build two different indexes  
or to use different fields that use different analysis on the same  
text (though this gets tricky with QueryParser generated queries and  
the potential for user field selection).


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

View raw message