开发者

Lucene Ful text search not search for Capital letters

开发者 https://www.devze.com 2023-01-29 17:20 出处:网络
I stuck with a problem for example if a search for an extended character \"ÈÈÈ\" it is not returning any search re开发者_JAVA技巧sult If I search for only È it is not returning any result.

I stuck with a problem for example if a search for an extended character "ÈÈÈ" it is not returning any search re开发者_JAVA技巧sult If I search for only È it is not returning any result.

any solution?

Thanx


May be the character È is eliminated during indexing. Check your analyzer. Most analyzers try remove the special characters during indexing.


Hi here is a solution which worked for me

QueryParser.setLowercaseExpandedTerms(false);

it will not convert text to lowercase.

if you not set this to false parser will convert the seacrh text to small case and it will not return any result.

0

精彩评论

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

关注公众号