Skip to content

Commit

Permalink
Fix renaming keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Jun 11, 2024
1 parent fe4a958 commit f16ba00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abcd/backends/atoms_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def rename_property(
query = self.parser(query)
logger.info("rename: query=%s, old=%s, new=%s", query, name, new_name)

script_txt = "if (!ctx._source.containsKey(params.new_name)) {{ "
script_txt = "if (!ctx._source.containsKey(params.new_name)) { "
script_txt += (
f"ctx._source.{new_name} = ctx._source.{name};"
" ctx._source.remove(params.name);"
Expand Down

0 comments on commit f16ba00

Please sign in to comment.