Skip to content

use Index API to update the record

Mykyta Savchuk requested to merge fix-partial-record-update into master

Indexer uses Update API (UpdateRequest) to update the record with partial update, which means that fields that are not included in the request won't be updated/deleted, but is expected to use full replacement, where field that are not included are deleted, since storage works this way with PUT endpoint. Because of this it is not possible to delete tags and some data fields. To fix this it is possible to use Index API (IndexRequest) for both insert and update. Docs: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-update.html https://www.elastic.co/guide/en/elasticsearch/reference/7.17/docs-index_.html

Edited by Mykyta Savchuk

Merge request reports