Commit 4b5b3fa6 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[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
parent b2b7aba9d59a
......@@ -20,3 +20,9 @@ panel in your ``pyramid.ini``:
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
......@@ -34,7 +34,7 @@ from cubicweb_elasticsearch.search_helpers import compose_search
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment