Lucene.Net/SpellChecker - multi-word/phrase based auto-suggest

前端 未结 3 927
小鲜肉
小鲜肉 2021-02-04 22:18

I\'ve implemented Lucenet.NET on my site, using it to index my products which are theatre shows, tours and attractions around London.

I want to implement a \"Did you mea

3条回答
  •  伪装坚强ぢ
    2021-02-04 22:54

    This is probably not the best solution and I definitely would use the answer suggested by spaceman but here is another possible solution. Use the KeywordAnalyzer or the KeywordTonenizer on each title, this will not break down the title into separate tokens but keep it as one token. Using the SuggestSimilar method would return the whole title as suggestions.

提交回复
热议问题