Skip to content

Commit

Permalink
Increased the number of terms facets returned by the Elasticsearch ba…
Browse files Browse the repository at this point in the history
…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
jezdez committed Oct 4, 2012
1 parent ff3d6bc commit 3a72eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/backend_support.rst
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions haystack/backends/elasticsearch_backend.py
Expand Up @@ -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,
},
}

Expand Down

0 comments on commit 3a72eff

Please sign in to comment.