Romi
Romi

Reputation: 4921

issue in searching uppercase string with wildcard

I am using solr search. my search field contains both diamond and Diamond. But when i search for Diamond or diamond it gives me correct results. But when i search for Diamond* or diamond*, I get result for diamond* but no results found for Diamond* . although i have applied <filter class="solr.LowerCaseFilterFactory"/>.

would you please suggest me what can be the issue.

Upvotes: 0

Views: 1479

Answers (1)

Samuele Mattiuzzo
Samuele Mattiuzzo

Reputation: 11038

"Unlike other types of Lucene queries, Wildcard, Prefix, and Fuzzy queries are not passed through the Analyzer, which is the component that performs operations such as stemming and lowercasing"

http://wiki.apache.org/lucene-java/LuceneFAQ#Are_Wildcard.2C_Prefix.2C_and_Fuzzy_queries_case_sensitive.3F

Inside this link there's the workaround for this problem

Upvotes: 3

Related Questions