# Is there a way to add a NGram field without reindexing documents?

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-add-a-ngram-field-without-reindexing-documents/128932>\
**Category:** Elasticsearch\
**Created:** [April 20, 2018, 8:10pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-add-a-ngram-field-without-reindexing-documents/128932 "2018-04-20T20:10:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![totessusan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/totessusan/32/13028_2.png) [@totessusan](https://discuss.elastic.co/u/totessusan)\
**Post date:** [April 20, 2018, 8:10pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-add-a-ngram-field-without-reindexing-documents/128932/1 "2018-04-20T20:10:06Z")

</div>

Say that I have a text field called "content," and I already have a field like content.raw - but I want to add a field that indexes documents with NGram applied (i.e. data would then be called by content.ngram). Is there a better way to update all existing documents without having to reindex them?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [April 22, 2018, 8:19am UTC](https://discuss.elastic.co/t/is-there-a-way-to-add-a-ngram-field-without-reindexing-documents/128932/2 "2018-04-22T08:19:48Z")

</div>

No, that will require reindexing.

---

<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:** [May 20, 2018, 8:20am UTC](https://discuss.elastic.co/t/is-there-a-way-to-add-a-ngram-field-without-reindexing-documents/128932/3 "2018-05-20T08:20:07Z")

</div>

Closed on May 20, 2018, 8:20am UTC

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