I am using the Kibana Dev Tools Console.
Elastic 6.1.1
Kibana 6.1.1
Running on windows
I am following the same steps outlined in the blog https://www.elastic.co/blog/you-complete-me
However, when I try
curl -X POST localhost:9200/hotels/_suggest -d '
{
"hotels" : {
"text" : "m",
"completion" : {
"field" : "name_suggest"
}
}
}'
which equates to
POST /hotels/_suggest
{
"hotels" : {
"text" : "m",
"completion" : {
"field" : "name_suggest"
}
}
}
I get the following error
{
"error": {
"root_cause": [
{
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_suggest]"
}
],
"type": "invalid_type_name_exception",
"reason": "Document mapping type name can't start with '_', found: [_suggest]"
},
"status": 400
}
I have searched through the forum but I can't find the solution