Skip to content
Snippets Groups Projects
Commit 0d670a8ad890 authored by Adrien Di Mascio's avatar Adrien Di Mascio
Browse files

[es6] depend on elasticsearch / elasticsearch_dsl v6

Starting from ES6, `_type` metadata is deprecated,
cf. https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
parent c971479078cb
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,8 @@
__depends__ = {'cubicweb': '>= 3.24.0', 'six': '>= 1.4.0',
'cwtags': None,
'elasticsearch': '>=2.0.0,<3.0.0',
'elasticsearch-dsl': '<5.0.0',
'elasticsearch': '>=6.0.0',
'elasticsearch-dsl': '>=6.0.0',
'beautifulsoup4': None,
}
......
......@@ -115,7 +115,6 @@
# "doc_type" in kwargs bellow must be container data.
data = {'_op_type': 'index',
'_index': index_name or cnx.vreg.config['index-name'],
'_type': json['cw_etype'],
'_id': serializer.es_id,
'_source': json
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment