# How Query and Search are categorized in Kibana Source Code?

**URL:** <https://discuss.elastic.co/t/how-query-and-search-are-categorized-in-kibana-source-code/184515>\
**Category:** Kibana\
**Created:** [June 6, 2019, 7:45am UTC](https://discuss.elastic.co/t/how-query-and-search-are-categorized-in-kibana-source-code/184515 "2019-06-06T07:45:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravananselvamohan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravananselvamohan/32/47407_2.png) [@saravananselvamohan](https://discuss.elastic.co/u/saravananselvamohan)\
**Post date:** [June 6, 2019, 7:45am UTC](https://discuss.elastic.co/t/how-query-and-search-are-categorized-in-kibana-source-code/184515/1 "2019-06-06T07:45:09Z")

</div>

![Query%20and%20Search](https://us1.discourse-cdn.com/elastic/original/3X/5/c/5c933ecba2f4dad0963876e58a6cdf48da73a337.png)

In Kibana Source Code there are files for QueryBar and SearchBar. What's the difference and how it's categorized?

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [June 6, 2019, 7:10pm UTC](https://discuss.elastic.co/t/how-query-and-search-are-categorized-in-kibana-source-code/184515/2 "2019-06-06T19:10:25Z")

</div>

`QueryBar`, as the name implies, is the input where you type your queries in Kibana. There is also `FilterBar`, which contains the filters UI that lives directly beneath the `QueryBar`.

`SearchBar` is basically a higher-level component that combines the two. If you use `SearchBar` you should get the whole UI that includes both query & filter functionality.

We are working to move filter functionality to the data plugin as well, which will live in a `filter` directory.

The reason this is broken apart is due to work we are doing to prepare for the [new Kibana platform](https://github.com/elastic/kibana/issues/9675) that is in development; ultimately we will be delivering different pieces of functionality as services which live inside the larger domain of a plugin. Services could export both APIs and UI components, so in this case we will be adding more APIs around querying/filtering/searching which will each live alongside these UI components.

---

<div class="post-metadata">

**Author:** ![saravananselvamohan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saravananselvamohan/32/47407_2.png) [@saravananselvamohan](https://discuss.elastic.co/u/saravananselvamohan)\
**Post date:** [June 7, 2019, 2:33am UTC](https://discuss.elastic.co/t/how-query-and-search-are-categorized-in-kibana-source-code/184515/3 "2019-06-07T02:33:47Z")

</div>

Thanks for your clear explanation. The Query we enter will convert to Elastic DSL and how DSL Query is connecting with ElasticSearch?

---

<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, 2019, 2:33am UTC](https://discuss.elastic.co/t/how-query-and-search-are-categorized-in-kibana-source-code/184515/4 "2019-07-05T02:33:48Z")

</div>

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