开发者

issue in searching uppercase string with wildcard

开发者 https://www.devze.com 2023-03-18 00:18 出处:网络
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 diam

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.


"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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号