Hi all,
I need to set up a system that provides spellchecking functionality on user
searches, similar to what Google does with its well known *did-you-mean *
suggestions.
The term suggester works very well for single words, but it doesn't take
into account shingles, thus not being able to provide suggestions that are
accurate enough for the standards I need to reach.
The *phrase suggester *is perfect for what I need, working with my shingle
fields to rank suggestions based on a language model, but it will not
provide any suggestions for single-term queries.
{
"phrase" : {
"size" : 1,
"gram_size" : 2,
"field" : "description.shingle",
"analyzer" : "intact",
"direct_generator" : [
{"field" : "description.unstemmed"}
]
}
}
At the moment I'm mixing this phrase suggester with a term suggester,
returning from one or from the other depending on the length of the
provided query, but I cannot understand why the phrase suggester cannot
just output single-term suggestions as well.
Any help?
Michele
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6536746f-887d-4c7c-9679-a117fe2c3add%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.