Skip to content
Snippets Groups Projects

use Index API to update the record

Merged Mykyta Savchuk requested to merge fix-partial-record-update into master
All threads resolved!

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

Merge request pipeline #169845 failed

Pipeline: Indexer

#169846

    Merge request pipeline failed for 09804fed

    Deployed to A‎WS‎ 2 years ago
    Deployed to I‎BM‎ 2 years ago
    Failed to deploy to Google‎_Cloud‎
    Approved by

    Merged by Neelesh ThakurNeelesh Thakur 2 years ago (Mar 3, 2023 2:33pm UTC)

    Merge details

    • Changes merged into master with b07d3e05.
    • Deleted the source branch.

    Pipeline #170784 canceled

    Pipeline canceled for b07d3e05 on master

    Canceled deployment to Google‎_Cloud‎
    Canceled deployment to A‎WS‎
    Skipped deployment to I‎BM‎

    Activity

    Filter activity
    • Approvals
    • Assignees & reviewers
    • Comments (from bots)
    • Comments (from users)
    • Commits & branches
    • Edits
    • Labels
    • Lock status
    • Mentions
    • Merge request status
    • Tracking
    Please register or sign in to reply
    Loading