# Is it possible to route documents indexed through an alias to an index under that alias by timestamp?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-route-documents-indexed-through-an-alias-to-an-index-under-that-alias-by-timestamp/236728>\
**Category:** Elasticsearch\
**Created:** [June 11, 2020, 2:53pm UTC](https://discuss.elastic.co/t/is-it-possible-to-route-documents-indexed-through-an-alias-to-an-index-under-that-alias-by-timestamp/236728 "2020-06-11T14:53:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [June 11, 2020, 2:53pm UTC](https://discuss.elastic.co/t/is-it-possible-to-route-documents-indexed-through-an-alias-to-an-index-under-that-alias-by-timestamp/236728/1 "2020-06-11T14:53:15Z")

</div>

I want to be able to send an upsert to an alias, and for it to route the document to an index that comes under that alias based on a timestamp field in the document. So if I'm updating an existing (but older) document, it gets updated in the index in which it already exists, rather than created in a new index.

Thanks for any help offered.

---

<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 9, 2020, 2:53pm UTC](https://discuss.elastic.co/t/is-it-possible-to-route-documents-indexed-through-an-alias-to-an-index-under-that-alias-by-timestamp/236728/2 "2020-07-09T14:53:19Z")

</div>

Closed on July 9, 2020, 2:53pm UTC

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