If I trying to get suggestions for word with special characters using this
query
POST _search
{
"suggest":{
"my-suggest-1" : {
"text" : "täta",
"term" : {
"field" : "fieldName"
}
}
}
}
I get response for two words: original and with replaced special characters
"suggest": {
"my-suggest-1": [
{
"text": "täta",
"offset": 0,
"length": 4,
"options": [
{
"text": "tätt",
"score": 0.75,
"freq": 16
},
{
"text": "tät",
"score": 0.6666666,
"freq": 10
},
{
"text": "tält",
"score": 0.5,
"freq": 25
},
{
"text": "tvätt",
"score": 0.5,
"freq": 8
},
{
"text": "tända",
"score": 0.5,
"freq": 6
}
]
},
{
"text": "tata",
"offset": 0,
"length": 4,
"options": [
{
"text": "täta",
"score": 0.75,
"freq": 11
},
{
"text": "tala",
"score": 0.75,
"freq": 5
},
{
"text": "tuta",
"score": 0.75,
"freq": 5
},
{
"text": "tama",
"score": 0.75,
"freq": 2
},
{
"text": "tatt",
"score": 0.75,
"freq": 1
}
]
}
]
}
How can I do request, that suggestions looked for only original word?
--
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/ecccba90-f7a9-4645-a556-0e930c498057%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.