# How to assign index to a group of nodes

**URL:** https://discuss.elastic.co/t/how-to-assign-index-to-a-group-of-nodes/159742
**Category:** Elasticsearch
**Created:** [December 6, 2018, 2:03pm UTC](https://discuss.elastic.co/t/how-to-assign-index-to-a-group-of-nodes/159742 "2018-12-06T14:03:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)
#### Post date: [December 6, 2018, 2:03pm UTC](https://discuss.elastic.co/t/how-to-assign-index-to-a-group-of-nodes/159742/1 "2018-12-06T14:03:54Z")

</div>

i have a cluster with 6 nodes, is it possible to have 3 of them assigned indices/shards of a,b whilst another 3 nodes assigned indices/shards of c,d? if possible, can you give the documentation how this can be accomplish?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 6, 2018, 2:32pm UTC](https://discuss.elastic.co/t/how-to-assign-index-to-a-group-of-nodes/159742/2 "2018-12-06T14:32:47Z")

</div>

Yes, that is possible. Have a look at [shard allocation filtering](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/allocation-filtering.html).

---

<div class="post-metadata">

### Author: ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)
#### Post date: [December 6, 2018, 2:41pm UTC](https://discuss.elastic.co/t/how-to-assign-index-to-a-group-of-nodes/159742/3 "2018-12-06T14:41:51Z")

</div>

thanks christian, i think index setting match closer to what i want [https://www.elastic.co/guide/en/elasticsearch/reference/6.5/shard-allocation-filtering.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/shard-allocation-filtering.html)

---

<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: [January 3, 2019, 2:42pm UTC](https://discuss.elastic.co/t/how-to-assign-index-to-a-group-of-nodes/159742/4 "2019-01-03T14:42:04Z")

</div>

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