0

How to update the existing mapping to include eager-ordinals for a field. This has to be done without re-indexing the data is it possible ? We are using index template to apply mappings and settings to the index.

Problem with creating the new index is it always applies the mapping from index template. Is it possible to ignore index template for a particular index alone ?

banu
  • 31
  • 1
  • 1
  • 6
  • Why don't you update the mapping in your template to make sure all future indices are correct? – Val Jan 20 '17 at 09:59
  • I need to test mapping change with one index first thats why we are not changing the template. We are trying to test the search query performance by changing the global-ordinals to eager in one index. If the performance is good we will change the template itself. – banu Jan 20 '17 at 10:09
  • There are [very few things](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#updating-field-mappings) you can change in an existing mapping once it's been created, and adding `eager_global_ordinals` is not one of them unfortunately. – Val Jan 20 '17 at 10:10
  • other than eager_global_ordinals is there any other option to improve the aggregation performance – banu Jan 20 '17 at 10:14
  • hard to tell with so few information :-) all I can say is that performance tuning must be done **before** carving your mapping into the stone – Val Jan 20 '17 at 10:18
  • thank you for your suggestion – banu Jan 20 '17 at 11:56
  • @val what is the information needed to tell your suggestion to improve performance – banu Jan 24 '17 at 11:19

0 Answers0