# Translating filter range query into query string

**URL:** <https://discuss.elastic.co/t/translating-filter-range-query-into-query-string/181693>\
**Category:** Elasticsearch\
**Created:** [May 18, 2019, 5:55pm UTC](https://discuss.elastic.co/t/translating-filter-range-query-into-query-string/181693 "2019-05-18T17:55:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oscar\_Sanchez\_Sanche](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oscar_sanchez_sanche/32/36678_2.png) [@Oscar\_Sanchez\_Sanche](https://discuss.elastic.co/u/Oscar_Sanchez_Sanche)\
**Post date:** [May 18, 2019, 5:55pm UTC](https://discuss.elastic.co/t/translating-filter-range-query-into-query-string/181693/1 "2019-05-18T17:55:43Z")

</div>

Hi there,

I would like to translate this query into a query string :

```
{
  "query": { 
    "bool": {
      "filter": [ 
        { "range": { "meta._sale_price.value": { 
                "gte" : 1,
                "lte" : 10,
                "boost" : 2.0 }}} 
      ]
    }
  }
} 

```

I have tried the following per [https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-query-string-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-query-string-query.html)

q=meta.\_sale\_price.value%3A[1%20TO%2010]

Unfortunately i get no results, can someone please provide some guidance to achieve this?

Thanks a lot in advance

---

<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 15, 2019, 5:55pm UTC](https://discuss.elastic.co/t/translating-filter-range-query-into-query-string/181693/2 "2019-06-15T17:55:48Z")

</div>

Closed on June 15, 2019, 5:55pm UTC

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