Why is filter not working with text/string values in Lucene.Net?

后端 未结 1 586
忘了有多久
忘了有多久 2020-12-12 07:43

I have made a filter in Lucene.Net to limit the result of the search. I am encountering a very strange issue. The filter is not working with Text Values but working with num

相关标签:
1条回答
  • 2020-12-12 08:12

    StandardAnalyzer will lowercase all the characters in your TokenStream.

    Try this:

    Filter LE = new QueryWrapperFilter(new TermQuery(new Term(field, "ZZZOCB9X9Y".ToLowerInvariant())));
    
    0 讨论(0)
提交回复
热议问题