Mailing List Archive

Autocompletion using Lucene Suggesters
Hello All,

We have a use case where we want to enable auto-complete for the help manual
in our project.

Currently the documents are created using bunch of xml files which are then
parsed into text version and then this version is indexed in Lucene. This
gives us a workable solution for searching.

But now to enable auto completion, I am using AnalyzingSuggester with
StandardAnalyzer(both for indexing and searching). Which gives me the
autocomplete feature but it does not consider the queries where we have
whitespace between the char sequence. Also it doesn't give me the results
with white-spaces.

for example, If some texts in my document contains "risk parameter"
searching for "risk" does give some results but as soon as I type "risk p"
it doesn't give any results.

I am new to the Lucene constructs and tried looking into various documents
available, but could not get it working.

While Indexing I am creating a TextField with the complete content of a help
page with Stored as "No".

I tried creating a StringField as well but that started erroring out saying
"java.lang.IllegalArgumentException: input automaton is too large: 1001".
Hence I had to revert it to TextField again.

Please advise how to model this.

Thanks in advance,
Jitesh




--
Sent from: https://lucene.472066.n3.nabble.com/Lucene-Java-Developer-f564358.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org