# HG changeset patch
# User Katia Saurfelt <katia.saurfelt@logilab.fr>
# Date 1545133053 -3600
#      Tue Dec 18 12:37:33 2018 +0100
# Node ID 47268681d4b03b28f5f71d710e6440eed9c0b002
# Parent  b2b7aba9d59a153479cd5712e8c6b8f4575dfc2a
[es6] replace the late magic field  `_all` by a custom `allfield`

this magic field does not exist anymore with elasticsearch 6 use computed field which it is named alltext by convention

diff --git a/README b/README
--- a/README
+++ b/README
@@ -20,3 +20,9 @@
       cubicweb_elasticsearch.pviews.espanel
 
 
+**Alltext** field
+~~~~~~~~~~~~~~~~~~
+
+The `cubicweb_elasticsearch.search_helpers.compose_search` referencies
+a custom `alltext` field which contains all indexed text. This field  must be
+defined in the custom Indexer mapping.
\ No newline at end of file
diff --git a/cubicweb_elasticsearch/views.py b/cubicweb_elasticsearch/views.py
--- a/cubicweb_elasticsearch/views.py
+++ b/cubicweb_elasticsearch/views.py
@@ -34,7 +34,7 @@
 
 class CWFacetedSearch(FacetedSearch):
     # fields that should be searched
-    fields = ["title^3", "description^2", '_all']
+    fields = ["title^3", "description^2", 'alltext']
 
     facets = {
         # use bucket aggregations to define facets