If I trying to get suggestions for phrase using this query
POST _search
{
"suggest":{
"my-suggest-1" : {
"text" : "täta tack",
"phrase" : {
"field" : "fieldName"
}
}
}
}
I get response with double words in suggestions
"suggest": {
"my-suggest-1": [
{
"text": "täta tack",
"offset": 0,
"length": 9,
"options": [
{
"text": "tält tack tack",
"score": 0.000005947221
},
{
"text": "tätt tack tack",
"score": 0.0000057828424
},
{
"text": "tät tack tack",
"score": 0.000003946186
},
{
"text": "tvätt tack tack",
"score": 0.0000038843486
},
{
"text": "tända tack tack",
"score": 0.0000034827103
}
]
}
]
}
Looks like "täta"->"tält tack", "tack"->"tack" = "tält tack tack".
How can I fix it?
--
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/71122d17-b4e2-48d3-b697-31c20c2432a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.