Skip to content

Instantly share code, notes, and snippets.

@jonasjancarik
Last active February 13, 2025 10:54
Show Gist options
  • Save jonasjancarik/755e98614130b3dcc2865907fcbc0f23 to your computer and use it in GitHub Desktop.
Save jonasjancarik/755e98614130b3dcc2865907fcbc0f23 to your computer and use it in GitHub Desktop.
General Purpose Elasticsearch Document Updater This gist provides a Python function to keep data in sync between two Elasticsearch indexes. The function updates documents in a target index based on values from a source index by dynamically constructing an update script and query. You can specify the field to match, its value, and a list of field…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment