# How to create Custom Discover UI like Kibana

**URL:** <https://discuss.elastic.co/t/how-to-create-custom-discover-ui-like-kibana/112367>\
**Category:** Elasticsearch\
**Created:** [December 19, 2017, 7:11am UTC](https://discuss.elastic.co/t/how-to-create-custom-discover-ui-like-kibana/112367 "2017-12-19T07:11:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nitin/32/20151_2.png) [@nitin](https://discuss.elastic.co/u/nitin)\
**Post date:** [December 19, 2017, 7:11am UTC](https://discuss.elastic.co/t/how-to-create-custom-discover-ui-like-kibana/112367/1 "2017-12-19T07:11:57Z")

</div>

Hi Experts,  
Our need is to create a search UI with same faceted search as on Kibana Discover tab.  
Search will be on random jsons in any Index.

Can somebody tell me how to get the faceted data (What should be my ES queries?) for getting the data categorization for each json key and the percentage count of values in my search results?

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/9/1900668aa40ae30faa57ca701f5d8f8eaa59a6e0.png)

Please help !

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 20, 2017, 7:52am UTC](https://discuss.elastic.co/t/how-to-create-custom-discover-ui-like-kibana/112367/2 "2017-12-20T07:52:37Z")

</div>

If you build a visualisation that contains the same data, you can inspect the query that Kibana sent.

Start on the bottom left of the visualisation;  
 ![51](https://us1.discourse-cdn.com/elastic/original/3X/3/f/3fe82ae5e6132b23fa51453e06a5a4a35e20a045.png)  
Then clicking that arrow will show something like this;

 ![00](https://us1.discourse-cdn.com/elastic/original/3X/5/a/5aad8a0845adaacedd4a7106d309aaa85828b91a.png)  
And then you can see the request that is sent, ie the query, as well as the response.  
 ![10](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6e25393659268fb0bbad910b1beba69aefb98943.png)

---

<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 17, 2018, 7:52am UTC](https://discuss.elastic.co/t/how-to-create-custom-discover-ui-like-kibana/112367/3 "2018-01-17T07:52:40Z")

</div>

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