原文地址: https://www.elastic.co/guide/en/elasticsearch/guide/current/_recap.html, 版权归 www.elastic.co 所有
WARNING: The 2.x versions of Elasticsearch have passed their EOL dates. If you are running a 2.x version, we strongly advise you to upgrade.
This documentation is no longer maintained and may be removed. For the latest information, see the current Elasticsearch documentation.
Recapedit
Choosing the appropriate type of filtering—search hits, aggregations, or both—often boils down to how you want your user interface to behave. Choose the appropriate filter (or combinations) depending on how you want to display results to your user.
-
A non-scoring query inside a
filter
clause affects both search results and aggregations. -
A
filter
bucket affects just aggregations. -
A
post_filter
affects just search results.