# How to create customized order in elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-create-customized-order-in-elasticsearch/27723>\
**Category:** Kibana\
**Created:** [August 20, 2015, 4:58am UTC](https://discuss.elastic.co/t/how-to-create-customized-order-in-elasticsearch/27723 "2015-08-20T04:58:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikas\_gopal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_gopal/32/47661_2.png) [@vikas\_gopal](https://discuss.elastic.co/u/vikas_gopal)\
**Post date:** [August 20, 2015, 4:58am UTC](https://discuss.elastic.co/t/how-to-create-customized-order-in-elasticsearch/27723/1 "2015-08-20T04:58:27Z")

</div>

Hi Experts ,

I am preparing a pie chart in kibana 4 which shows device action . It could be "error", "Warning" and "info". Now what I want is to provide red color to "error", yellow to warning and green to info . I am aware that in kibana 3 it was achievable but in kibana 4 I have 2 options

1. change the order of the result because I have seen color changes if I change the order of the result like ASC to DESC or vice versa .
2. In src/public/index.js I can define my color options.

My question is may I write or provide a customized order to the filed in elasticsearch . With this customized order my result would be in the order like "Error", "Warning", "info' then in the src/public/index.js I'll provide red, yellow and green color. I hope this makes sense . If you have any other alternate please let me know .

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [August 20, 2015, 7:23am UTC](https://discuss.elastic.co/t/how-to-create-customized-order-in-elasticsearch/27723/2 "2015-08-20T07:23:52Z")

</div>

This post is about Kibana so I'm going to move it to the Kibana category where it is more likely to be answered

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [August 20, 2015, 1:36pm UTC](https://discuss.elastic.co/t/how-to-create-customized-order-in-elasticsearch/27723/3 "2015-08-20T13:36:51Z")

</div>

Color palette selection is currently targeted to Kibana 4.3 - you can +1 and track the progress here: [https://github.com/elastic/kibana/issues/1362](https://github.com/elastic/kibana/issues/1362)

---

<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, 2:14pm UTC](https://discuss.elastic.co/t/how-to-create-customized-order-in-elasticsearch/27723/4 "2017-07-06T14:14:28Z")

</div>


