# Could Update/Get/Delete an document on an alias accociated to multiple indexes?

**URL:** <https://discuss.elastic.co/t/could-update-get-delete-an-document-on-an-alias-accociated-to-multiple-indexes/278986>\
**Category:** Elasticsearch\
**Created:** [July 18, 2021, 11:52am UTC](https://discuss.elastic.co/t/could-update-get-delete-an-document-on-an-alias-accociated-to-multiple-indexes/278986 "2021-07-18T11:52:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![light\_chen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/light_chen/32/91791_2.png) [@light\_chen](https://discuss.elastic.co/u/light_chen)\
**Post date:** [July 18, 2021, 11:52am UTC](https://discuss.elastic.co/t/could-update-get-delete-an-document-on-an-alias-accociated-to-multiple-indexes/278986/1 "2021-07-18T11:52:04Z")

</div>

In order to reduce the size of index (I hear that it is better to keep the size lower than 25~30GB per index), I split the data into several indexes using Rollover API. Then I create two alias, in my expectation, the one associated to an index for Indexing API, which was created by Rollover API, and the other one associated to all the indexes, for Get, Update, Delete API.

Is this pattern feasible, or is there a way to do the equivalent thing？

I have tried to Get or Update a document, but got errors:

```auto
localhost:9200/logs_read/_get/1

{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Alias [logs_read] has more than one indices associated with it [[my_logs_index-000001, my_logs_index-000003, my_logs_index-000002]], can't execute a single index op"
            }
        ],
        "type": "illegal_argument_exception",
        "reason": "Alias [logs_read] has more than one indices associated with it [[my_logs_index-000001, my_logs_index-000003, my_logs_index-000002]], can't execute a single index op"
    },
    "status": 400
}

```

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 18, 2021, 12:02pm UTC](https://discuss.elastic.co/t/could-update-get-delete-an-document-on-an-alias-accociated-to-multiple-indexes/278986/2 "2021-07-18T12:02:25Z")

</div>

Any alias that points to more than one index will be read-only.

---

<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 15, 2021, 12:03pm UTC](https://discuss.elastic.co/t/could-update-get-delete-an-document-on-an-alias-accociated-to-multiple-indexes/278986/3 "2021-08-15T12:03:19Z")

</div>

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