# Is there some way to reindex all documents of an index?

**URL:** <https://discuss.elastic.co/t/is-there-some-way-to-reindex-all-documents-of-an-index/179674>\
**Category:** Elasticsearch\
**Created:** [May 5, 2019, 1:12pm UTC](https://discuss.elastic.co/t/is-there-some-way-to-reindex-all-documents-of-an-index/179674 "2019-05-05T13:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EFJunior](https://avatars.discourse-cdn.com/v4/letter/e/77aa72/32.png) [@EFJunior](https://discuss.elastic.co/u/EFJunior)\
**Post date:** [May 5, 2019, 1:12pm UTC](https://discuss.elastic.co/t/is-there-some-way-to-reindex-all-documents-of-an-index/179674/1 "2019-05-05T13:12:03Z")

</div>

I was having issues about handling multi word synonyms and the solution i've found was contracting the synonym to a "canonical form" at index time like explained [here](https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-word-synonyms.html).

But when i add a new synonym to the list, all documents should be reindexed, right ?. What's the recommended way of doing that ?

---

<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:** [May 6, 2019, 8:15am UTC](https://discuss.elastic.co/t/is-there-some-way-to-reindex-all-documents-of-an-index/179674/2 "2019-05-06T08:15:42Z")

</div>

You can use the [reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/docs-reindex.html) to do this. Index into a second index and then use an alias to point to that one.

---

<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:** [June 3, 2019, 8:15am UTC](https://discuss.elastic.co/t/is-there-some-way-to-reindex-all-documents-of-an-index/179674/3 "2019-06-03T08:15:43Z")

</div>

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