Im using Solr 3.5.0, and in Schema I have enabled the LowerCaseFilterFactory in all needed fields, bbut When I search for example “shirts” im able to get the results, also when I search for “SHIRTS” i’m able to get expected results, but when I try to search with “shiRTs” its not giving the results. I know I’m missing some thing in Schema.
Please help me on this.
Thanks
Jeyaprakash.
Apply the same analysers and filters at both index and query time, so the the queries you search for match the tokens index.
As in your case –
If you apply the Lower case filter at index time but not at query time :-
Index token will be
shirts, However as the search query is not analyzedSHIRTSor evenShirtswill not match indexedshirtstoken.The same would apply if you are using stemmers, stopwords or other filters.
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#Analyzers