search engine - elasticsearch index transactions -
i exploring elasticsearch , comparing our current search solution. use case have is, , everytime build index, have drop current index , create new 1 same name. old docs dropped old index , new index have fresh data. indexing process takes couple of minutes finish.
my question happens search requests coming in during time. elastic search uses transaction , commit changes (dropping index , new index new documents) in transaction?
what happens if deleted index, , error occurs during middle of indexing? if there no transactions, there workaround situation?
elasticsearch doesn't support transactions. when delete index, delete index. until create new index users getting indexmissingexception exceptions. once new index created see records indexed , refreshed (by default refresh occurs every second).
one way hide users using aliases. can create alias point index. when need reindex data, can create new index, index new data there, switch alias new index , delete old index.
Comments
Post a Comment