I want to save some data just in case (Suddenly, later come in handy).
I need them to not be indexed and not involved in the search.
If this data is later needed, I will get it from _source.
I tried to add mapping, but ES swears:
curl -s -H 'content-type: application/json; charset=UTF-8' "http://localhost:9205/test123/_mapping/searchtype?pretty" -XPUT -d'{"properties" : {"name2":{"index":false}}}'
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "No type specified for field [name2]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "No type specified for field [name2]"
},
"status" : 400
}
Why? This data is in the original JSON.
ES 6.8.