- filter A filter is query that either matches a document or doesn't, it's boolean.
- query A query uses scoring to order results by the degree to which they match the request. Queries are much less performant than filters.
Some queries can contain other queries (bool
), some can contain filters (constant_score
), and others can contain both (filtered
).