Remove mapping of no existing fields

Why is not possible to remove completly a mapping field ? (I would like to change a field type to boolean to string, I have removed this field, but I cannot change the mapping field type despite there is no data for this field :/)

I am using update_by_query for reindexing, because I want to stay on the same index.

I know https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-delete-mapping.html has been removed, I hope there is a way to achieve it.

A big thanks !

There is, you need to reindex.

reindex is fine for small indices, but I have 7x 20Go indices to update :confused: :confused:

I finally use reindex API, it took lot of time and ressources but it does the trick. Actually ES is not schema less at all and schema is immutable (apart add new fields).

That's still not a lot of data.

Also if you can add fields to the mappings, then by definition it is mutable.

ok I mean it's no completely immutable .... so is not immutable by dictionnary definition.