diff --git a/README b/README index b2b7aba9d59a153479cd5712e8c6b8f4575dfc2a_UkVBRE1F..47268681d4b03b28f5f71d710e6440eed9c0b002_UkVBRE1F 100644 --- 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 index b2b7aba9d59a153479cd5712e8c6b8f4575dfc2a_Y3ViaWN3ZWJfZWxhc3RpY3NlYXJjaC92aWV3cy5weQ==..47268681d4b03b28f5f71d710e6440eed9c0b002_Y3ViaWN3ZWJfZWxhc3RpY3NlYXJjaC92aWV3cy5weQ== 100644 --- 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