# What comes first on Index Shard Allocation Filtering?

**URL:** <https://discuss.elastic.co/t/what-comes-first-on-index-shard-allocation-filtering/61157>\
**Category:** Elasticsearch\
**Created:** [September 21, 2016, 4:36pm UTC](https://discuss.elastic.co/t/what-comes-first-on-index-shard-allocation-filtering/61157 "2016-09-21T16:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hgfxng](https://avatars.discourse-cdn.com/v4/letter/h/aeb1de/32.png) [@hgfxng](https://discuss.elastic.co/u/hgfxng)\
**Post date:** [September 21, 2016, 4:36pm UTC](https://discuss.elastic.co/t/what-comes-first-on-index-shard-allocation-filtering/61157/1 "2016-09-21T16:36:12Z")

</div>

I wonder what is the priority of the index shard allocation filtering settings?

index.routing.allocation.include.{attribute}  
index.routing.allocation.require.{attribute}  
index.routing.allocation.exclude.{attribute}

Another way to put this question is... Does it needs to match all options?

If ES matches both an include and an exclude, what happens?

best

---

<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 5, 2017, 10:18pm UTC](https://discuss.elastic.co/t/what-comes-first-on-index-shard-allocation-filtering/61157/2 "2017-07-05T22:18:27Z")

</div>


