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.