# How can i send sql query to Search() method of ElasticClient?

**URL:** <https://discuss.elastic.co/t/how-can-i-send-sql-query-to-search-method-of-elasticclient/146495>\
**Category:** Elasticsearch\
**Created:** [August 29, 2018, 9:10am UTC](https://discuss.elastic.co/t/how-can-i-send-sql-query-to-search-method-of-elasticclient/146495 "2018-08-29T09:10:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Patel](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Gaurav\_Patel](https://discuss.elastic.co/u/Gaurav_Patel)\
**Post date:** [August 29, 2018, 9:10am UTC](https://discuss.elastic.co/t/how-can-i-send-sql-query-to-search-method-of-elasticclient/146495/1 "2018-08-29T09:10:38Z")

</div>

Hi, I am using "NEST" package for my .net application and I want to pass my SQL query with WHERE condition to Search() method of ElasticClient.

---

<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:** [September 26, 2018, 9:10am UTC](https://discuss.elastic.co/t/how-can-i-send-sql-query-to-search-method-of-elasticclient/146495/2 "2018-09-26T09:10:39Z")

</div>

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