开发者

Lucene Ful text search not search for Capital letters

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜