# Reindex issue

**URL:** <https://discuss.elastic.co/t/reindex-issue/355772>\
**Category:** Elasticsearch\
**Tags:** reindex\
**Created:** [March 20, 2024, 1:22am UTC](https://discuss.elastic.co/t/reindex-issue/355772 "2024-03-20T01:22:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alan\_Hsiao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alan_hsiao/32/124389_2.png) [@Alan\_Hsiao](https://discuss.elastic.co/u/Alan_Hsiao)\
**Post date:** [March 20, 2024, 1:22am UTC](https://discuss.elastic.co/t/reindex-issue/355772/1 "2024-03-20T01:22:51Z")

</div>

I have some issue while I am reindex  
this is my result of reindex

 ![SCR-20240320-iqbh](https://us1.discourse-cdn.com/elastic/original/3X/a/8/a8b4ce969def3275fa94598570d555ce6ea0dcbc.jpeg)

when I use `GET my_index` in devtool my data show this

 ![SCR-20240319-nete](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6d3fccd51166322a2984a8ed47c99ebae6c37bfb.png)

Does \_source enabled false made my reindex fall? How can I fix it?

 ![SCR-20240319-nfbh](https://us1.discourse-cdn.com/elastic/original/3X/9/b/9b554825e189bd89ffd50e7462905420c73ea6c2.png)

---

<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:** [March 20, 2024, 5:49am UTC](https://discuss.elastic.co/t/reindex-issue/355772/2 "2024-03-20T05:49:35Z")

</div>

Yes, as the documentation highlights you can not use the reindex API if you do not have source enabled. You may need to instead reindex the data from the original source.

---

<div class="post-metadata">

**Author:** ![Alan\_Hsiao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alan_hsiao/32/124389_2.png) [@Alan\_Hsiao](https://discuss.elastic.co/u/Alan_Hsiao)\
**Post date:** [March 20, 2024, 6:03am UTC](https://discuss.elastic.co/t/reindex-issue/355772/3 "2024-03-20T06:03:00Z")

</div>

What should I do? Create a new mapping that \_source is enabled and reindex the old index to new mapping?

---

<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:** [March 20, 2024, 6:25am UTC](https://discuss.elastic.co/t/reindex-issue/355772/4 "2024-03-20T06:25:14Z")

</div>

You can not reindex from an index where source is disabled so it does not matter what you set for the destination index. You will generally need to again index your data from where it originated, e.g. an external database, logfiles on disk etc.

One way around this may be to use [synthetic source](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/mapping-source-field.html) if you are on an Elasticsearch version that supports this, but I have not myself used this so can not guide you there.

---

<div class="post-metadata">

**Author:** ![Alan\_Hsiao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alan_hsiao/32/124389_2.png) [@Alan\_Hsiao](https://discuss.elastic.co/u/Alan_Hsiao)\
**Post date:** [March 20, 2024, 6:43am UTC](https://discuss.elastic.co/t/reindex-issue/355772/5 "2024-03-20T06:43:08Z")

</div>

So there is no way to change \_source from false to true if my data is already in es, I need to reupload the data and set a new mapping that \_source is enabled.

---

<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:** [March 20, 2024, 6:46am UTC](https://discuss.elastic.co/t/reindex-issue/355772/6 "2024-03-20T06:46:07Z")

</div>

Yes, you can not change that on an existing index as the data is no longer available. If you reupload the data from an external source you can do so into an index that has source disabled, but be aware that again will prevent you from reindexing the data. This tradeoff is highlighted in the documentation describing how to disable source.

---

<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:** [April 17, 2024, 6:46am UTC](https://discuss.elastic.co/t/reindex-issue/355772/7 "2024-04-17T06:46:16Z")

</div>

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