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...
1 parent ff3d6bc commit 3a72eff7d77658307e12aae28038be6699e347e6 @jezdez jezdez committed Oct 4, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −1 docs/backend_support.rst
  2. +1 −0 haystack/backends/elasticsearch_backend.py
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,
},
}

0 comments on commit 3a72eff

Please sign in to comment.