Finding exact match using Lucene search API

后端 未结 5 1554
失恋的感觉
失恋的感觉 2021-02-09 07:06

I\'m working on a company search API using Lucene. My Lucene company index has got 2 companies: 1.Abigail Adams National Bancorp, Inc. 2.National Bancorp

If the user typ

5条回答
  •  迷失自我
    2021-02-09 07:29

    You can use KeywordAnalyzer to index and search on this field. Keyword Analyzer will generate only one token for the entire string.

提交回复
热议问题