Posted By:
Shyam_Eranky
Posted On:
Thursday, July 13, 2006 04:44 PM
Hi
We are using Lucene to support text based free form search. We are currently using a custom analyzer that breaks on whitespace and a few other characters and lowercases all values.
The problem is that we would like to support case insensitive search by default and in an advanced option we want to support case-sensitive search also. Since the indexing phase uses the analyzer to convert everything to lowercase we are only able to support case insensitive(In the query phase we do QueryParser.setLowercaseExpandedTerms(true);).
If we do not lowercase during indexing it becomes a case sensitive search and not case insensitive. Any help is appreciated..