# Does aliasing require reindexing?

**URL:** https://discuss.elastic.co/t/does-aliasing-require-reindexing/9788
**Category:** Elasticsearch
**Created:** [November 21, 2012, 10:56pm UTC](https://discuss.elastic.co/t/does-aliasing-require-reindexing/9788 "2012-11-21T22:56:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![T\_Vinod\_Gupta](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@T\_Vinod\_Gupta](https://discuss.elastic.co/u/T_Vinod_Gupta)
#### Post date: [November 21, 2012, 10:56pm UTC](https://discuss.elastic.co/t/does-aliasing-require-reindexing/9788/1 "2012-11-21T22:56:23Z")

</div>

hi,  
i just wanted to confirm something.. if i already have a bunch of data for  
different users in an index with 5 shards and now i want to create an alias  
for each user with a filter and routing parameter associated with it, then  
i have to reindex the data for that user using either the new index name or  
routing parameter, right? otherwise, data that is not in the routed shard  
will never come up in searches against that alias index.

thanks

--

---

<div class="post-metadata">

### Author: ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)
#### Post date: [November 22, 2012, 10:00am UTC](https://discuss.elastic.co/t/does-aliasing-require-reindexing/9788/2 "2012-11-22T10:00:09Z")

</div>

On Wed, 2012-11-21 at 14:56 -0800, T Vinod Gupta wrote:

> hi,  
> i just wanted to confirm something.. if i already have a bunch of data  
> for different users in an index with 5 shards and now i want to create  
> an alias for each user with a filter and routing parameter associated  
> with it, then i have to reindex the data for that user using either  
> the new index name or routing parameter, right? otherwise, data that  
> is not in the routed shard will never come up in searches against that  
> alias index.

Correct.

clint

--

---

<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: [July 6, 2017, 3:03am UTC](https://discuss.elastic.co/t/does-aliasing-require-reindexing/9788/3 "2017-07-06T03:03:16Z")

</div>


