# Is there a way to bring back in clause without using OR in query string

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-bring-back-in-clause-without-using-or-in-query-string/240374>\
**Category:** Elasticsearch\
**Created:** [July 8, 2020, 3:03pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-bring-back-in-clause-without-using-or-in-query-string/240374 "2020-07-08T15:03:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcengl](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dcengl](https://discuss.elastic.co/u/dcengl)\
**Post date:** [July 8, 2020, 3:03pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-bring-back-in-clause-without-using-or-in-query-string/240374/1 "2020-07-08T15:03:10Z")

</div>

Is there a way to bring back the "in" query without using OR in ES 7.

For example: `q=my-field:(value1 value2 value3)` instead of `q=my-field:(value1 OR value2 OR value3)`

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 9, 2020, 12:48am UTC](https://discuss.elastic.co/t/is-there-a-way-to-bring-back-in-clause-without-using-or-in-query-string/240374/2 "2020-07-09T00:48:14Z")

</div>

I think query string has a default operator. See if they'll do you.

You could also use a match query if you don't need the fancy field selecting syntax. That also supports matching any of the terms.

---

<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:** [August 6, 2020, 12:48am UTC](https://discuss.elastic.co/t/is-there-a-way-to-bring-back-in-clause-without-using-or-in-query-string/240374/3 "2020-08-06T00:48:22Z")

</div>

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