Kibana code where queries are sent to Elasticsearch

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!

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