Bird
0
0

Why might an Elasticsearch query using only a "filter" clause return results that are not ranked by relevance?

medium📝 Debug Q6 of 15
Elasticsearch - Search Results and Scoring
Why might an Elasticsearch query using only a "filter" clause return results that are not ranked by relevance?
ABecause filters limit the number of documents returned, ignoring relevance
BBecause filters automatically boost relevance scores of matching documents
CBecause filters sort documents alphabetically instead of by relevance
DBecause filters do not calculate relevance scores, they only include or exclude documents
Step-by-Step Solution
Solution:
  1. Step 1: Understand filter behavior

    Filters are binary: documents either match or don't, without scoring.
  2. Step 2: Effect on ranking

    Since filters don't assign scores, results are not ranked by relevance.
  3. Final Answer:

    Because filters do not calculate relevance scores, they only include or exclude documents -> Option D
  4. Quick Check:

    Filters exclude/include but do not score [OK]
Quick Trick: Filters exclude/include documents without scoring [OK]
Common Mistakes:
MISTAKES
  • Assuming filters boost relevance
  • Thinking filters sort results
  • Believing filters limit results ignoring relevance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes