# Ignoring fields from indexing and updating same fields

**URL:** <https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760>\
**Category:** Elasticsearch\
**Created:** [October 29, 2019, 9:33pm UTC](https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760 "2019-10-29T21:33:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Petrovic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_petrovic/32/56811_2.png) [@Ivan\_Petrovic](https://discuss.elastic.co/u/Ivan_Petrovic)\
**Post date:** [October 29, 2019, 9:33pm UTC](https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760/1 "2019-10-29T21:33:38Z")

</div>

Hi everyone,

We are about to release Elasticsearch in production for our time-series analytics data.  
We have few concerns about optimizing performance.

By default ES indexes all fields and we want to prevent that. As we understand we can do that with settings "index": false, to those fields by which we don't want to query. Is there more efficient way to do this, like nesting all that data into "enabled": false type of data?

On some data types we do have frequent updates, but those updates are only on fields that doesn't need to be indexed, will ES still reindex all the data each time update happens on these fields?

Is there any way to update field without reindexing?

Best,  
Ivan Petrovic

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 31, 2019, 1:05pm UTC](https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760/2 "2019-10-31T13:05:28Z")

</div>

You are right. At the moment, updating means a full reindex operation.

You can use index templates and [dynamic templates](https://www.elastic.co/guide/en/elasticsearch/reference/7.4/dynamic-templates.html) to make sure none of any new fields get indexed by default.

---

<div class="post-metadata">

**Author:** ![Ivan\_Petrovic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_petrovic/32/56811_2.png) [@Ivan\_Petrovic](https://discuss.elastic.co/u/Ivan_Petrovic)\
**Post date:** [November 1, 2019, 10:48pm UTC](https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760/3 "2019-11-01T22:48:29Z")

</div>

Thanks for sharing dynamic templates, but it's not the solution we are looking for.

It is great that you can make sure that none of new fields get indexed, but we are looking for something a bit different.

Are there any possibilities and plans to improve updates that won't reindex for fields that are not part of the index?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [November 4, 2019, 9:54am UTC](https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760/4 "2019-11-04T09:54:43Z")

</div>

Documents are always indexed as a whole for now.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 2, 2019, 9:54am UTC](https://discuss.elastic.co/t/ignoring-fields-from-indexing-and-updating-same-fields/205760/5 "2019-12-02T09:54:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
