# About Index Shard Allocation

**URL:** <https://discuss.elastic.co/t/about-index-shard-allocation/9876>\
**Category:** Elasticsearch\
**Created:** [November 29, 2012, 7:35am UTC](https://discuss.elastic.co/t/about-index-shard-allocation/9876 "2012-11-29T07:35:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaojian](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xiaojian](https://discuss.elastic.co/u/xiaojian)\
**Post date:** [November 29, 2012, 7:35am UTC](https://discuss.elastic.co/t/about-index-shard-allocation/9876/1 "2012-11-29T07:35:46Z")

</div>

Hi,  
I want to custome index shard rules, for example, I created a called productindex index on one node , divided into 5 shard, which has a “type” attribute, I want to control my index according to the value of the type attribute .  
who tell me how i shoud do?

---

<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:02am UTC](https://discuss.elastic.co/t/about-index-shard-allocation/9876/2 "2017-07-06T03:02:17Z")

</div>

Closed on July 6, 2017, 3:02am UTC


