# HG changeset patch # User cavaliet # Date 1411047333 -7200 # Node ID 88ce48689c14e21743081e570789423b6ece3d6c # Parent 160add2c52a138ea60ccc7554e2df08314ea32d7 v1.53.10 : modify for elasticsearch >1.0 diff -r 160add2c52a1 -r 88ce48689c14 src/ldt/ldt/__init__.py --- a/src/ldt/ldt/__init__.py Wed Jul 23 17:50:27 2014 +0200 +++ b/src/ldt/ldt/__init__.py Thu Sep 18 15:35:33 2014 +0200 @@ -1,6 +1,6 @@ __all__ = ["VERSION", "get_version", "__version__"] -VERSION = (1, 53, 9, "final", 0) +VERSION = (1, 53, 10, "final", 0) def get_version(): diff -r 160add2c52a1 -r 88ce48689c14 src/ldt/ldt/indexation/backends/elasticsearch_backend.py --- a/src/ldt/ldt/indexation/backends/elasticsearch_backend.py Wed Jul 23 17:50:27 2014 +0200 +++ b/src/ldt/ldt/indexation/backends/elasticsearch_backend.py Thu Sep 18 15:35:33 2014 +0200 @@ -74,7 +74,7 @@ ids = [get_identifier(elt) for elt in obj_or_string] if not ids: return - q = {'ids' : {'values' : ids}} + q = {"query": {'ids' : {'values' : ids}}} self.conn.delete_by_query(self.index_name, 'modelresult', q) else: return super(ElasticsearchSearchBackend, self).remove(obj_or_string, commit=commit)