# Elasticsearch - update existing documents in different index

**URL:** <https://discuss.elastic.co/t/elasticsearch-update-existing-documents-in-different-index/258295>\
**Category:** Elasticsearch\
**Created:** [December 10, 2020, 3:05pm UTC](https://discuss.elastic.co/t/elasticsearch-update-existing-documents-in-different-index/258295 "2020-12-10T15:05:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kapila](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kapila/32/84671_2.png) [@Kapila](https://discuss.elastic.co/u/Kapila)\
**Post date:** [December 10, 2020, 3:05pm UTC](https://discuss.elastic.co/t/elasticsearch-update-existing-documents-in-different-index/258295/1 "2020-12-10T15:05:16Z")

</div>

Here is my data set

```auto
ticket_id: T100
ticket_status: open
ticket_updated_date: 20201201T10:10:22

ticket_id: T101
ticket_status: open
ticket_updated_date: 20201201T11:10:22

ticket_id: T101
ticket_status: closed
ticket_updated_date: 20201202T11:10:22

```

I want to store above data set into elasticsearch. ticket\_id is a unique id and set it as document id as I wanted to maintain single document for a ticket.

I'm creating daily indexes in elastic and index name is 'ticket'. Ticket id T001 created on 2020/12/01 and it get stored in 'ticket\_2020-12-01' index. When the ticket T001 updated on next day i.e. 2020/12/02, it get stored in 'ticket\_2020-12-02' index.

How can I save all ticket details in initial index (this case it's 'ticket\_2020-12-01')?

---

<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:** [January 7, 2021, 3:05pm UTC](https://discuss.elastic.co/t/elasticsearch-update-existing-documents-in-different-index/258295/2 "2021-01-07T15:05:16Z")

</div>

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