jen-huang
(Jen Huang)
April 25, 2018, 6:37pm
2
Currently there is no great way to do this. Eventually we would like to expose an API for this, or refresh fields automatically. You can track this issue on GitHub here: Remove index pattern mapping cache · Issue #6498 · elastic/kibana · GitHub
There is a workaround solution provided here:
i don't think there is an API call to do that, but you could do it with a few steps:
get the list of fields in the index pattern with:
http://localhost:5601/api/index_patterns/_fields_for_wildcard?pattern=NAME_OF_YOUR_INDEX&meta_fields=["_source","_id","_type","_index","_score"],
escape returned json and update the index with:
curl 'http://localhost:5601/api/saved_objects/index-pattern/ID_OF_YOUR_INDEX' -X PUT -H 'Content-Type: application/json' -H "kbn-xsrf: true" --data-binary '{"attri…