# Range query on multiple fileds with pattern matching

**URL:** <https://discuss.elastic.co/t/range-query-on-multiple-fileds-with-pattern-matching/52524>\
**Category:** Elasticsearch\
**Created:** [June 12, 2016, 6:56am UTC](https://discuss.elastic.co/t/range-query-on-multiple-fileds-with-pattern-matching/52524 "2016-06-12T06:56:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghasem1992](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@ghasem1992](https://discuss.elastic.co/u/ghasem1992)\
**Post date:** [June 12, 2016, 6:56am UTC](https://discuss.elastic.co/t/range-query-on-multiple-fileds-with-pattern-matching/52524/1 "2016-06-12T06:56:01Z")

</div>

I want to execute a range query on multi fields with a pattern like:

```
GET /testindex/testtype/_search
{
   "query": {
      "range": {
         "a*": {
            "gt": 14
         }
     }
   }
}

```

I set a\* in range query field name to do this query on all fields that start with 'a'. how can I do that?

---

<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:** [June 13, 2016, 8:44am UTC](https://discuss.elastic.co/t/range-query-on-multiple-fileds-with-pattern-matching/52524/2 "2016-06-13T08:44:47Z")

</div>

I do not think this is supported.

---

<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:** [July 5, 2017, 10:44pm UTC](https://discuss.elastic.co/t/range-query-on-multiple-fileds-with-pattern-matching/52524/3 "2017-07-05T22:44:24Z")

</div>

Closed on July 5, 2017, 10:44pm UTC


