# Document With Repeating Behaviour; Aka Event Doc that repeats every tuesday for 5 years

**URL:** <https://discuss.elastic.co/t/document-with-repeating-behaviour-aka-event-doc-that-repeats-every-tuesday-for-5-years/18787>\
**Category:** Elasticsearch\
**Created:** [July 22, 2014, 10:04am UTC](https://discuss.elastic.co/t/document-with-repeating-behaviour-aka-event-doc-that-repeats-every-tuesday-for-5-years/18787 "2014-07-22T10:04:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hookercookerman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hookercookerman/32/1382_2.png) [@hookercookerman](https://discuss.elastic.co/u/hookercookerman)\
**Post date:** [July 22, 2014, 10:04am UTC](https://discuss.elastic.co/t/document-with-repeating-behaviour-aka-event-doc-that-repeats-every-tuesday-for-5-years/18787/1 "2014-07-22T10:04:59Z")

</div>

so what the problem?

how do I solve this without creating seperate event Docs for the next 5  
years and storing them; why would I want to do that? Yes I can store an  
Array of dates and I can find the event documents  
however I need each repeat to return a document why?

so I can sort and find events; yes there is a master event that knows what  
is repeated etc. but in terms of pagination and a ui I want these events to  
be seen as individual documents

any ideas or suggestion most welcome; The only solution I can see is to  
bulk create all these events and have logic on the 'app' side that would  
know how to update/delete based on the 'master' event being changed?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/01334e57-9b95-4810-9e13-cfb934ad02d4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/01334e57-9b95-4810-9e13-cfb934ad02d4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:14am UTC](https://discuss.elastic.co/t/document-with-repeating-behaviour-aka-event-doc-that-repeats-every-tuesday-for-5-years/18787/2 "2017-07-06T01:14:16Z")

</div>


