Hi All,
I have a question regarding auto-complete functionality in Lucene.
On the StackOverflow the suggestion regarding implementation is
1) Use AnalyzingSuggester
2) Use PrefixQuery and SpanFirstQuery with the IndexSearcher.search()
What is the differences between them? Do they have big differences in
performance?
Currently for suggest we are using SuggestIndexSearcher.suggest() method,
but there is no availability to add scoring by some field (what exactly we
need) and I did not found any recommendation on the StackOverflow for this
method.
And now the question is what is the better to use 1# or 2# for
auto-complete.
Could you advice?
Thank you
I have a question regarding auto-complete functionality in Lucene.
On the StackOverflow the suggestion regarding implementation is
1) Use AnalyzingSuggester
2) Use PrefixQuery and SpanFirstQuery with the IndexSearcher.search()
What is the differences between them? Do they have big differences in
performance?
Currently for suggest we are using SuggestIndexSearcher.suggest() method,
but there is no availability to add scoring by some field (what exactly we
need) and I did not found any recommendation on the StackOverflow for this
method.
And now the question is what is the better to use 1# or 2# for
auto-complete.
Could you advice?
Thank you