We have a single index with new types constantly being created. There is a template that the index used to do the mapping. Now I would like to add a new geo_point mapping to the template so that new types will include the new geo_point mapping.
I tried just updating the existing template via the head plugin. It allowed me to update the template and I can see the changes when doing a GET _template/
eg
"location":{"type":"geo_point", "store":"no"}
But new types will map location to 2 float parameters.
However, if I manually create a type with a dummy document, apply the mapping to the type eg PUT /myindex/_mapping/mynewtype -d ‘{"properties":{"location":{"type":"geo_point","store":"no"}}}’. new documents created under mynewtype will map location as geo_point.
So should I be updating the template? Is applying the mapping directly to a type my only option? I would like to avoid re-indexing if possible.
Thanks.