_search/*/_suggest
Smartsite 8.0 - ...
Purpose
Gets suggestions, supporting a did-you-mean.
Suggest
Gets suggestions, given a possibly misspelled or mistyped text.
POSTÂ _search/<index names>/_suggest
{
"text": "lght",
"size": 3
}
Result:
{
"suggest": {
"simple_phrase": [
{
"text": "lght",
"options": [
{
"text": "ligt",
"score": 0.015353536
},
{
"text": "laat",
"score": 0.011547227
},
{
"text": "last",
"score": 0.009066051
}
]
}
]
}
}
Suggestions are specific for the indexes as specified.