# Can someone explain how to use "Intervals query"?

**URL:** <https://discuss.elastic.co/t/can-someone-explain-how-to-use-intervals-query/333045>\
**Category:** Elasticsearch\
**Created:** [May 10, 2023, 8:16am UTC](https://discuss.elastic.co/t/can-someone-explain-how-to-use-intervals-query/333045 "2023-05-10T08:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduard\_mart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eduard_mart/32/119729_2.png) [@Eduard\_mart](https://discuss.elastic.co/u/Eduard_mart)\
**Post date:** [May 10, 2023, 8:16am UTC](https://discuss.elastic.co/t/can-someone-explain-how-to-use-intervals-query/333045/1 "2023-05-10T08:16:38Z")

</div>

How to use them?  
What is the difference with query\_string and what are the benefits of using "Intervals query"?  
The documentation is really unclear and hard to understand.

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood1/32/101255_2.png) [@Mark\_Harwood1](https://discuss.elastic.co/u/Mark_Harwood1)\
**Post date:** [May 11, 2023, 6:53am UTC](https://discuss.elastic.co/t/can-someone-explain-how-to-use-intervals-query/333045/2 "2023-05-11T06:53:25Z")

</div>

Query\_string is a bottleneck for search features.  
Not everything elasticsearch does can be expressed in a syntax designed for simple queries.  
You need to use the more complex JSON syntax to access the more advanced expressions available in interval queries.

---

<div class="post-metadata">

**Author:** ![Eduard\_mart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eduard_mart/32/119729_2.png) [@Eduard\_mart](https://discuss.elastic.co/u/Eduard_mart)\
**Post date:** [May 15, 2023, 9:57am UTC](https://discuss.elastic.co/t/can-someone-explain-how-to-use-intervals-query/333045/3 "2023-05-15T09:57:51Z")

</div>

What is the difference between Span queries and intervals?

And what internal query will “query\_string” “query”: ““field korean”~10” be converted to?

---

<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 12, 2023, 9:58am UTC](https://discuss.elastic.co/t/can-someone-explain-how-to-use-intervals-query/333045/4 "2023-06-12T09:58:01Z")

</div>

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