# Elastic-search advanced search query issue

**URL:** <https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254>\
**Category:** Elasticsearch\
**Created:** [September 5, 2019, 1:03pm UTC](https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254 "2019-09-05T13:03:06Z")\
**Posts on this page:** 3\
**Page:** 2

<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 12, 2019, 2:46pm UTC](https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254/21 "2019-09-12T14:46:42Z")

</div>

Hi @Christian_Dahlqvist

???

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 13, 2019, 6:54am UTC](https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254/22 "2019-09-13T06:54:45Z")

</div>

You will need to write code that looks at which parameters that have been submitted by the user and based on this created the query DSL with a clause for each provided input. I would not create a template for every possible permutation. I am not sure how I can explain it any clearer than that.

If this is still not clear I give up.

---

<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 11, 2019, 6:54am UTC](https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254/23 "2019-10-11T06:54:46Z")

</div>

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

[Previous page](https://discuss.elastic.co/t/elastic-search-advanced-search-query-issue/198254.md?page=1)
