# Remote Reindexing and New Fields

**URL:** <https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893>\
**Category:** Elasticsearch\
**Created:** [July 12, 2017, 10:48pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893 "2017-07-12T22:48:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Juke\_Box\_Hero](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@The\_Juke\_Box\_Hero](https://discuss.elastic.co/u/The_Juke_Box_Hero)\
**Post date:** [July 12, 2017, 10:48pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/1 "2017-07-12T22:48:01Z")

</div>

Hi All,

I'm setting up my new elastic cloud account and migrating stuff from a qbox account, the process is pretty straightforward so far but I have a problem, so far I've only been using my current index for search but now I want to be able to analyze the data from it and then it hit me, I had no .raw mapping for the fields that I need to analyze. Searching the web it seems that the only option right now it's to reindex, which I'm doing anyways since I'm migrating. My question is: what do I have to do to create this new mappings when doing the remote reindex from elastic? I want to create a raw version of an analysed field on my new elastic cloud index, any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 13, 2017, 3:19pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/2 "2017-07-13T15:19:26Z")

</div>

If you didn't add a mapping template, did you get a `.keyword` field automatically _in place of_ `.raw`? It would serve the same function.

---

<div class="post-metadata">

**Author:** ![The\_Juke\_Box\_Hero](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@The\_Juke\_Box\_Hero](https://discuss.elastic.co/u/The_Juke_Box_Hero)\
**Post date:** [July 13, 2017, 4:38pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/3 "2017-07-13T16:38:10Z")

</div>

I read about it but unfortunately no, I don't have either of those, the thing is that I didn't create the index originally and the process will take to much time to create an index from scratch due to different constraints so I would rather reindex the data I already have on my qbox index using the remote index api, but that one only seems to make an exact copy of the original index, which is not properly set up. Thanks for your input though, hopefully I can get a few more ideas.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 13, 2017, 5:44pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/4 "2017-07-13T17:44:23Z")

</div>

> [@The\_Juke\_Box\_Hero](#):
>
> that one only seems to make an exact copy of the original index, which is not properly set up.

No, no. You _can_ reindex into a new mapping. All you have to do is create the index and add the mapping in advance. Then reindex into this newly created index.

---

<div class="post-metadata">

**Author:** ![The\_Juke\_Box\_Hero](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@The\_Juke\_Box\_Hero](https://discuss.elastic.co/u/The_Juke_Box_Hero)\
**Post date:** [July 13, 2017, 5:46pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/5 "2017-07-13T17:46:59Z")

</div>

Got it, do I have the create all the mappings or can I create just the mapping I need and run the reindex? I'm thinking it might read my mapping and then overlap the rest of the mappings in the old index correct? Thanks!

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 13, 2017, 7:03pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/6 "2017-07-13T19:03:11Z")

</div>

I'm trying to accurately understand what you're asking.

**Scenario 1:** _You have a remote index, and you want to change the mapping on the data in that index as you reindex it to a new local index._

In this case, the old mapping is not preserved at all. The new mapping will apply to your data as it is indexed into the new, local index.

**Scenario 2:** _You have already reindexed from a remote index, and you want to change the mapping on the data in that index._

In this case, you would perhaps not even be able to do what you're describing. You'd have to reindex _locally_ to a new _local_ index, with the new mapping.

To answer the "mapping I need" question, I presume you're talking about mapping out the fields that have specific, non-text mappings (numbers, booleans, keyword [formerly raw], etc.). So long as you're okay with the default auto-mapped values, then you're probably okay to do that: map just the "must-have" mappings, and accept the default on others.

You could, theoretically, download the mapping from the remote side, and just edit it to reflect newer mapping ideas.

---

<div class="post-metadata">

**Author:** ![The\_Juke\_Box\_Hero](https://avatars.discourse-cdn.com/v4/letter/t/9de053/32.png) [@The\_Juke\_Box\_Hero](https://discuss.elastic.co/u/The_Juke_Box_Hero)\
**Post date:** [July 13, 2017, 7:06pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/7 "2017-07-13T19:06:25Z")

</div>

Ok I think I understand now, thanks so much. I'm about to reindex to my new local index should be simple enough then. Again thanks for the direction.

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [July 13, 2017, 7:06pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/8 "2017-07-13T19:06:44Z")

</div>

Please check my update above ^^^

---

<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:** [August 10, 2017, 7:06pm UTC](https://discuss.elastic.co/t/remote-reindexing-and-new-fields/92893/9 "2017-08-10T19:06:46Z")

</div>

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