Skip to content

Add support for if_seq_no and if_primary_term to ingest #41255

Closed
@martijnvg

Description

@martijnvg

Currently version and version type are accessible in pipeline:

{
  "set": {
    "field": "_version",
    "value": "{{field1}}"
  },
  "set": {
    "field": "_version_type",
    "value": "{{field2}}"
  }
}

However both are deprecated in a favor of if_seq_no and if_primary_term.
Ingest should support these new method of performing optimistic locking in ingest as well:

{
  "set": {
    "field": "_if_seq_no",
    "value": "{{field1}}"
  },
  "set": {
    "field": "_if_primary_term",
    "value": "{{field2}}"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions