# Filtered aliases

**URL:** <https://discuss.elastic.co/t/filtered-aliases/6545>\
**Category:** Elasticsearch\
**Created:** [January 30, 2012, 9:37pm UTC](https://discuss.elastic.co/t/filtered-aliases/6545 "2012-01-30T21:37:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![derrickburns](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@derrickburns](https://discuss.elastic.co/u/derrickburns)\
**Post date:** [January 30, 2012, 9:37pm UTC](https://discuss.elastic.co/t/filtered-aliases/6545/1 "2012-01-30T21:37:49Z")

</div>

I am trying to understand the filtered alias concept. The documentation  
suggest that an alias is name for a list of (concrete index, filter,  
routing) tuples. Is this correct?

If so, then I should be able to add different tuples, say (index1, filter1,  
routing1) and (index2, filter2, routing2) to an alias. Then, when I search  
for all documents in the alias, I get the documents in index1 filtered by  
filter1 combined with the documents in index2 filtere by index2. Is this  
corrrect?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 31, 2012, 3:54pm UTC](https://discuss.elastic.co/t/filtered-aliases/6545/2 "2012-01-31T15:54:27Z")

</div>

Think if it in another way. There is a single alias, which can point to one (or several) indices. You can only associate one filter with it, as well as routing information.

On Monday, January 30, 2012 at 11:37 PM, Derrick wrote:

> I am trying to understand the filtered alias concept. The documentation suggest that an alias is name for a list of (concrete index, filter, routing) tuples. Is this correct?
> 
> If so, then I should be able to add different tuples, say (index1, filter1, routing1) and (index2, filter2, routing2) to an alias. Then, when I search for all documents in the alias, I get the documents in index1 filtered by filter1 combined with the documents in index2 filtere by index2. Is this corrrect?

---

<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:40am UTC](https://discuss.elastic.co/t/filtered-aliases/6545/3 "2017-07-06T03:40:59Z")

</div>


