# What is the difference between interval and span queries?

**URL:** <https://discuss.elastic.co/t/what-is-the-difference-between-interval-and-span-queries/189348>\
**Category:** Elasticsearch\
**Created:** [July 8, 2019, 1:07pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-interval-and-span-queries/189348 "2019-07-08T13:07:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![princesahu04](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/princesahu04/32/47235_2.png) [@princesahu04](https://discuss.elastic.co/u/princesahu04)\
**Post date:** [July 8, 2019, 1:07pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-interval-and-span-queries/189348/1 "2019-07-08T13:07:02Z")

</div>

In both the query we control over the order and proximity of matching terms then what is the actual difference between them?

---

<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 5, 2019, 1:07pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-interval-and-span-queries/189348/2 "2019-08-05T13:07:04Z")

</div>

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