How to update a filed type without deleting the index or data


(Amit Kumar Patra) #1

HI,

i want to update a filed type without deleting the index or data.

How can we achieve that?

Thanks in advanced.


(David Pilato) #2
PUT foo/_doc/1
{
  "foo": "bar"
}
PUT foo/_doc/1
{
  "foo": "baz"
}

(Christian Dahlqvist) #3

Are you talking about updating the mapping type of a field in an index? If so, that is unfortunately not possible and will require you to reindex your data into a new index.


(system) #4

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