Create or update mapping in elasticsearch
Generally speaking, you can update your index mapping using the put mapping api (reference here) : curl -XPUT ‘http://localhost:9200/advert_index/_mapping/advert_type’ -d ‘ { “advert_type” : { “properties” : { //your new mapping properties } } } ‘ It’s especially useful for adding new fields. However, in your case, you will try to change the location type, … Read more