# Change a source alias during reindex on the background

**URL:** <https://discuss.elastic.co/t/change-a-source-alias-during-reindex-on-the-background/123565>\
**Category:** Elasticsearch\
**Created:** [March 12, 2018, 2:28pm UTC](https://discuss.elastic.co/t/change-a-source-alias-during-reindex-on-the-background/123565 "2018-03-12T14:28:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bican](https://avatars.discourse-cdn.com/v4/letter/b/e495f1/32.png) [@Bican](https://discuss.elastic.co/u/Bican)\
**Post date:** [March 12, 2018, 2:28pm UTC](https://discuss.elastic.co/t/change-a-source-alias-during-reindex-on-the-background/123565/1 "2018-03-12T14:28:59Z")

</div>

Hi,  
I need help with the following scenario.  
Let's say we have following indices and aliases.  
index A - has an alias C and holds data  
index B - has no alias and has no data  
I start reindex and define the source index to be an alias. I tell to Javascript client NOT to wait for completion.  
Something like:  
{  
"source": {  
"index": "C"  
},  
"dest": {  
"index": "B"  
}  
}  
My reindex is running but I'm switching my alias C to the index B already.  
Is it going to reindex all data from the index A to the index B?  
Thanks,  
Radovan

---

<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 9, 2018, 2:29pm UTC](https://discuss.elastic.co/t/change-a-source-alias-during-reindex-on-the-background/123565/2 "2018-04-09T14:29:03Z")

</div>

Closed on April 9, 2018, 2:29pm UTC

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