searchlight/releasenotes/notes/use-size-in-facets-search-438d4c4317879dfc.yaml
leizhang 75f46cb16d Replace use of search_type=count with size=0
Currently we run aggregation-only searches by setting search_type
to 'count', this will not return any docs because we only care
about the stats. Elasticsear 2.0 recommmends using size=0 instead.

Change-Id: I6f176e80e21cb1fcb30942c5cfa38146c891612b
Closes-Bug: #1572660
2016-05-18 06:56:12 +00:00

10 lines
345 B
YAML

---
prelude: >
Change the way of doing facets search, replace use of
search_type=count with size=0
other:
- Facets search is aggregation-only, no actual documents
need to be returned. We do it by setting search_type
in search request before, but it has been deprecated in
Elasticsearch 2.x, use recommended size=0 instead.