Update field default to not_analyzed

I am trying to update the existing FIELD from default to not_analyzed,
without changing the mapping of the index.

You can't.

Please try if this will work for you:
curl -XPUT 'http://localhost:9200/index_name/_mapping/type_name ' -d '
{
"properties" : {
"field_name" : {"type" : "string", "store" : "yes","index" : "not_analyzed"}
}
}'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.