0
我節約了以下標題索引Lucene的文本字段不記號化
doc.add(new TextField(TITLE, "Button",Field.Store.YES));
後來,當我搜索它說「butto」,沒有返回。我必須搜索「按鈕」才能找回任何東西。我必須做些什麼才能讓按鈕的任何子字符串都有結果?我使用
StandardAnalyzer analyzer = new StandardAnalyzer();