Skip to content

Commit

Permalink
use ES keyword parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Mar 22, 2024
1 parent bfcc8b5 commit 40de5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woudc_data_registry/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ def delete(self):
index_name = self.generate_index_name(definition['index'])

try:
self.connection.indices.delete(index_name)
self.connection.indices.delete(index=index_name)
except NotFoundError as err:
LOGGER.error(err)
raise SearchIndexError(err)
Expand Down Expand Up @@ -1294,7 +1294,7 @@ def unindex_except(self, domain, targets):
}
}

self.connection.delete_by_query(index_name, query)
self.connection.delete_by_query(index=index_name, body=query)
return True


Expand Down

0 comments on commit 40de5c9

Please sign in to comment.