The constant score query in Elasticsearch wraps a filter and assigns a fixed score to all documents matching that filter. First, the query applies the filter condition to select documents. Then, it wraps this filter in a constant_score query which sets the score for all matched documents to a fixed value, ignoring the usual relevance scoring. This is useful when you want to treat all filtered documents equally in scoring. For example, filtering documents where status is 'active' and assigning them a score of 1.5 means all active documents have the same score regardless of term frequency or other factors. The execution steps show filtering first, then assigning the constant score, and finally returning the results. If no documents match the filter, no results are returned. Changing the boost value changes the fixed score assigned. This approach simplifies scoring when relevance is not important.