elasticsearch - Updating the document in aliased index collection -
i trying figure out if there efficient way update document in aliased index collection .i create index alias names .when insert document index using access-event-logs_writer alias (which refers created index ) flows need update document.
if update access-event-logs_writer alias, works if document in current index . if index rotation has occurred , document want update in other index , update access-event-logs_writer fails.
i update access-event-logs alias, fails if there more 1 index alias name.
one option query , find index in document resides , use index name update.also , in approach getting source document , can update in memory , index again same document id (no update / deletion).
please let me know if there better way handle update?
below how alias looks like.
curl http://localhost:9200/_alias { "access-event-logs_2016-03-06t00:00:00-08:00": { "aliases": { "access-event-logs": {}, "access-event-logs_writer": {} } }, "access-event-logs_2016-03-04t00:00:00-08:00": { "aliases": { "access-event-logs": {} } }, "access-event-logs_2016-03-05t00:00:00-08:00": { "aliases": { "access-event-logs": {} } }
Comments
Post a Comment