Compound queries
- Constant score: Wraps a query or a filter and assigns a constant score to all matching documents. This score is equal to the value.
- Function score: Recalculates the relevance score of documents that are returned by a query using a function that you define.