# How to generates the query based on the users input

**URL:** https://discuss.elastic.co/t/how-to-generates-the-query-based-on-the-users-input/198837
**Category:** Elasticsearch
**Created:** [September 10, 2019, 7:32am UTC](https://discuss.elastic.co/t/how-to-generates-the-query-based-on-the-users-input/198837 "2019-09-10T07:32:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rameshkr1994](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rameshkr1994/32/59029_2.png) [@rameshkr1994](https://discuss.elastic.co/u/rameshkr1994)
#### Post date: [September 10, 2019, 7:32am UTC](https://discuss.elastic.co/t/how-to-generates-the-query-based-on-the-users-input/198837/1 "2019-09-10T07:32:30Z")

</div>

Dear All.

I having issue while searching with multiple fields condition in elastic search.

i want know how can we run elastic search query based on user input (provided fields).

Very Thanks  
HadoopHelp

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 10, 2019, 11:37am UTC](https://discuss.elastic.co/t/how-to-generates-the-query-based-on-the-users-input/198837/2 "2019-09-10T11:37:55Z")

</div>

I think you already asked this question in [Elastic-search advanced search query issue](https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254) so let's keep the discussion in one single place. Thanks.

---

<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: [October 8, 2019, 11:37am UTC](https://discuss.elastic.co/t/how-to-generates-the-query-based-on-the-users-input/198837/3 "2019-10-08T11:37:58Z")

</div>

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