# HG changeset patch # User Katia Saurfelt <katia.saurfelt@logilab.fr> # Date 1544625866 -3600 # Wed Dec 12 15:44:26 2018 +0100 # Node ID ce7d40c6affd2c5e9cf432a08bd5acb65256aa02 # Parent 9d0bba1e08cafa909fdc4f36555e6abfd05ac391 [es6] ES doesn't support multiple types in a single index: use `_doc` type for all diff --git a/cubicweb_elasticsearch/entities.py b/cubicweb_elasticsearch/entities.py --- a/cubicweb_elasticsearch/entities.py +++ b/cubicweb_elasticsearch/entities.py @@ -127,7 +127,7 @@ @property def es_doc_type(self): - return self.entity.cw_etype + return '_doc' @cachedproperty def fulltext_indexable_attributes(self):