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:
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
}