# Kibana code where queries are sent to Elasticsearch

**URL:** <https://discuss.elastic.co/t/kibana-code-where-queries-are-sent-to-elasticsearch/49637>\
**Category:** Kibana\
**Created:** [May 10, 2016, 10:32am UTC](https://discuss.elastic.co/t/kibana-code-where-queries-are-sent-to-elasticsearch/49637 "2016-05-10T10:32:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brasoveanul](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@brasoveanul](https://discuss.elastic.co/u/brasoveanul)\
**Post date:** [May 10, 2016, 10:32am UTC](https://discuss.elastic.co/t/kibana-code-where-queries-are-sent-to-elasticsearch/49637/1 "2016-05-10T10:32:54Z")

</div>

Hello,

I hope that this is the right place for this question. I would like to carefully study the Kibana code that implements the communication with the Elasticsearch server and sends the queries to Elastic, so that I can understand how the logical operators like AND, OR or parantheses are supported when building the query in Kibana. Could you point out the Kibana code file(files) that implement the communication/query sending to the Elastic server? Thank you in advance!

---

<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:** [May 11, 2016, 11:15pm UTC](https://discuss.elastic.co/t/kibana-code-where-queries-are-sent-to-elasticsearch/49637/2 "2016-05-11T23:15:42Z")

</div>

You don't need to read the code, it's described here - [https://www.elastic.co/guide/en/kibana/current/discover.html#search](https://www.elastic.co/guide/en/kibana/current/discover.html#search)

---

<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, 1:53pm UTC](https://discuss.elastic.co/t/kibana-code-where-queries-are-sent-to-elasticsearch/49637/3 "2017-07-06T13:53:34Z")

</div>


