Hi all I'm using phrase suggester to obtain spell check corrections over
user query. I have on my corpus the next words
spider, spyder, spade, spde
I want to get suggestions for spider and I'm entering next query,
"suggest" : {
"spell_ngram" : {
"text" : "spider",
"phrase" : {
"field" : "spell_ngram",
"size" : 5,
"confidence" : 0.7,
"max_errors" : 0.9,
"gram_size" : 5
}
}
}
The output is
spell_ngram:
[
1]
0:
{
text: "spider"
offset: 0
length: 6
options:
[
3]
0:
{
text: "spade"
score: 0.15242973
}
1:
{
text: "spde"
score: 0.077127695
}
2:
{
text: "spider"
score: 0.07542856
}
}
}
I think that spyder should be the best one because the edit distance is 1,
is there any thing that I'm doing wrong.
Best
--
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/6c576390-fc88-4731-a009-ea1dac82648e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.