1) Modify StandardAnalyzer to remove the LowerCaseFilter
2) Make 2 fields in your index, one with the text in the original format and
one with all lower-case format.
3) a) If the checkbox calls for case-insensitive search, make the search
string lower-case and search the field containing the text with lower-case
b) If the checkbox calls for case-sensitive search, search the field with
the original text without modifying the search string.
From: AJIT RAJWADE
Sent: 20. juni 2002 14:46
Subject: Case Sensitive and Insensitive Searches BOTH needed
An application I am building requires me to perform both case sensitive as
well as case insensitive searches on the fly. I mean while searching for a
particular word/phrase in my application, the user has the option to have
the results sensitive or in-sensitive to case, depending upon the state of a
checkbox. What can I do to get around this problem?
If I use StandardAnalyzer, it uses the LowerCaseFilter...so the results are
all case-insensitive. If I modify the StandardAnalyzer code to remove the
LowerCaseFilter, I get all case sensitive results! What should I do?
To unsubscribe, e-mail:
For additional commands, e-mail: