# How to filter Querystring using DSL?

**URL:** <https://discuss.elastic.co/t/how-to-filter-querystring-using-dsl/67803>\
**Category:** Elasticsearch\
**Created:** [December 1, 2016, 8:15pm UTC](https://discuss.elastic.co/t/how-to-filter-querystring-using-dsl/67803 "2016-12-01T20:15:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@madhan](https://discuss.elastic.co/u/madhan)\
**Post date:** [December 1, 2016, 8:15pm UTC](https://discuss.elastic.co/t/how-to-filter-querystring-using-dsl/67803/1 "2016-12-01T20:15:00Z")

</div>

how to use filter with dynamic query string. Below is my query.

**[tblsearch.Id](http://tblsearch.Id):(\*)** this is my query string. This query string may change based on search code.

I need to filter **tblsearch.Active:(1)** from that search docs.

How to write search terms with filter using DSL.

---

<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:** [December 29, 2016, 8:15pm UTC](https://discuss.elastic.co/t/how-to-filter-querystring-using-dsl/67803/2 "2016-12-29T20:15:02Z")

</div>

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