[英]Lucene suggest phrases
I have an index with text masses like: 我有一个文本质量如下的索引:
"Hello I want to try autocomplete xxx yyy zzz"
“您好,我想尝试自动填充xxx yyy zzz”
Is it possible to get suggestions such that, if I type: 如果输入以下内容,是否有可能获得建议:
--------------------------------------------------------------------
| I typed | Suggestion |
====================================================================
| autocomplete x | autocomplete xxx |
--------------------------------------------------------------------
| auto | autocomplete |
--------------------------------------------------------------------
| Hello I want to try auto | Hello I want to try autocomplete. |
--------------------------------------------------------------------
So it suggests words based on what is actually after the first word, and won't suggest the words that are before the words I suggest either. 因此,它根据第一个单词之后的实际内容来建议单词,也不会建议我建议的单词之前的单词。
Using lucene 4.4 使用lucene 4.4
These links might help you: 这些链接可以帮助您:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.