Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Increased the number of terms facets returned by the Elasticsearch ba…

…ckend to 100 from the default 10 to work around an issue upstream.

This is hopefully only temporary until it's fixed in Elasticsearch, see elastic/elasticsearch#1776.
  • Loading branch information...
commit 3a72eff7d77658307e12aae28038be6699e347e6 1 parent ff3d6bc
@jezdez jezdez authored
View
2  docs/backend_support.rst
@@ -46,7 +46,7 @@ Elasticsearch
* Automatic query building
* "More Like This" functionality
* Term Boosting
-* Faceting
+* Faceting (up to 100 facets)
* Stored (non-indexed) fields
* Highlighting
* Spatial search
View
1  haystack/backends/elasticsearch_backend.py
@@ -325,6 +325,7 @@ def build_search_kwargs(self, query_string, sort_by=None, start_offset=0, end_of
kwargs['facets'][facet_fieldname] = {
'terms': {
'field': facet_fieldname,
+ 'size': 100,
},
}
Please sign in to comment.
Something went wrong with that request. Please try again.