原文地址: https://www.elastic.co/guide/en/elasticsearch/guide/current/_recap.html, 版权归 www.elastic.co 所有

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.