I try to use elastic suggester so when user start to type some text, autocomplete will help him. do I need to do something specific on mapping for that index?
if I insert this document to 'init' index:
POST init/_doc
{
"device": "comp-1",
"startTime":1984562456000,
"endTime":1984662456000,
"fileName":"myFirstFile.parquet"
}
and then my query for suggest is:
POST init/_search
{
"suggest": {
"my-suggest-1" : {
"text" : "my",
"term" : {
"field" : "fileName"
}
}
}
}
but result has no suggestion.
what am I doing wrong?
thanks, Larry