# Kibana 7.6.1 How Does Discover's Search Bar Work

**URL:** https://discuss.elastic.co/t/kibana-7-6-1-how-does-discovers-search-bar-work/231422
**Category:** Kibana
**Created:** [May 6, 2020, 11:06pm UTC](https://discuss.elastic.co/t/kibana-7-6-1-how-does-discovers-search-bar-work/231422 "2020-05-06T23:06:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![0josh](https://avatars.discourse-cdn.com/v4/letter/0/48db29/32.png) [@0josh](https://discuss.elastic.co/u/0josh)
#### Post date: [May 6, 2020, 11:06pm UTC](https://discuss.elastic.co/t/kibana-7-6-1-how-does-discovers-search-bar-work/231422/1 "2020-05-06T23:06:23Z")

</div>

Hi, I'm trying to integrate [SQL](https://github.com/opendistro-for-elasticsearch/sql) as an alternative option to KQL in the discover search bar. Essentially redirecting inputed queries and POST them to hostname:9200/\_opendistro/\_sql

It seems [call\_client.ts](https://github.com/elastic/kibana/blob/4d6eeff3e062e1596a18d7f2dfee69570eefa2d4/src/legacy/core_plugins/data/public/search/fetch/call_client.ts#L62) in the Kibana source code sends the inputed query to ElasticSearch, but I can't find the implementation on how it is sent. I really appreciate any help or suggestions.

---

<div class="post-metadata">

### Author: ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)
#### Post date: [May 7, 2020, 12:30am UTC](https://discuss.elastic.co/t/kibana-7-6-1-how-does-discovers-search-bar-work/231422/2 "2020-05-07T00:30:49Z")

</div>

Before you venture into this , have you checked out if ES-SQL works for you? Elasticsearch SQL, you can access that full text search, blazing speed, and effortless scalability with a familiar query syntax. Here is a blog post about it [https://www.elastic.co/blog/an-introduction-to-elasticsearch-sql-with-practical-examples-part-1](https://www.elastic.co/blog/an-introduction-to-elasticsearch-sql-with-practical-examples-part-1)

Let us know if this is what you were looking for.

Thanks  
Rashmi

---

<div class="post-metadata">

### Author: ![0josh](https://avatars.discourse-cdn.com/v4/letter/0/48db29/32.png) [@0josh](https://discuss.elastic.co/u/0josh)
#### Post date: [May 7, 2020, 1:59am UTC](https://discuss.elastic.co/t/kibana-7-6-1-how-does-discovers-search-bar-work/231422/3 "2020-05-07T01:59:45Z")

</div>

Thanks for the reply! I'm aware of the Elasticsearch SQL, but I do want to see if it's possible to change where inputted queries in the discover search bar are sent.

---

<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: [June 4, 2020, 1:59am UTC](https://discuss.elastic.co/t/kibana-7-6-1-how-does-discovers-search-bar-work/231422/4 "2020-06-04T01:59:46Z")

</div>

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