Re: How to use case in-sentive search

2015-08-14 Thread Jack Krupansky
I was assuming this was a Lucene question... The StandardAnalyzer already includes the lower case filter, so the default should be case-insensitive query. See: https://lucene.apache.org/core/5_2_1/analyzers-common/org/apache/lucene/analysis/standard/StandardAnalyzer.html If the question was

How to use case in-sentive search

2015-08-14 Thread vardhaman narasagoudar
Dear Team, I am trying to build a search engine for fetching person info based on name or email Id. For this I have standard Analyzer wildcard. If I enter case senstive query I get the result. but how to go about for case in-senstive I mean if I search for rohan or Rohan should be same,

Re: How to use case in-sentive search

2015-08-14 Thread Erick Erickson
Add LowercaseFilterFactory to your analysis chain for the fieldType both at query and index time. You'll need to re-index. The admin UI/analysis page will help you understand the effects of each analysis step defined in your fieldTypes. Best, Erick On Fri, Aug 14, 2015 at 3:44 AM, vardhaman

Re: How to use case in-sentive search

2015-08-14 Thread Uwe Schindler
Hi, Wildcard queries don't use the Analyzer, so they are case sensitive. Most of Lucene's query parsers allow to lowercase although there is a wildcard, but xou have to enable this. In most cases it is recommended to use a plain simple analyzer for fields using wildcards. If you also have