# Date range matching in ES

**URL:** <https://discuss.elastic.co/t/date-range-matching-in-es/301289>\
**Category:** Elasticsearch\
**Created:** [April 1, 2022, 7:47am UTC](https://discuss.elastic.co/t/date-range-matching-in-es/301289 "2022-04-01T07:47:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheGreatBaldOne](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thegreatbaldone/32/93645_2.png) [@TheGreatBaldOne](https://discuss.elastic.co/u/TheGreatBaldOne)\
**Post date:** [April 1, 2022, 7:47am UTC](https://discuss.elastic.co/t/date-range-matching-in-es/301289/1 "2022-04-01T07:47:56Z")

</div>

I would like to create a small scheduling app.

Lets say we have Joe and he needs to teach online multiple people individually about .. gardening.

He cannot teach more than 1 person at a time.

He has a calendar of 'available' dates and his 'customers' also have their own calendars.

Now lets say we have many 'Joes' and many 'customers' all trying to schedule their meetings.

I imagine we will have for the 'teachers' multiple date-range type, where I am storing their  
'available' time.

and also a multiple date-range type for customers storing their 'available' time.

How would I start matching the calendar of these, 2 groups of people?

I do not think it is a good idea to do a massive query containing the full-range of available date-ranges of a customer to all the teachers or vice versa.

---

<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:** [April 29, 2022, 7:48am UTC](https://discuss.elastic.co/t/date-range-matching-in-es/301289/2 "2022-04-29T07:48:51Z")

</div>

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