Bird
0
0

What does a term query in Elasticsearch do?

easy🧠 Conceptual Q11 of 15
Elasticsearch - Basic Search Queries
What does a term query in Elasticsearch do?
AAnalyzes and breaks the search term into tokens
BFinds exact matches of the given term in the data
CFinds documents with terms similar to the search term
DSorts documents based on the term frequency
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of term query

    A term query searches for exact matches without analyzing the search term.
  2. Step 2: Compare options with term query behavior

    Only Finds exact matches of the given term in the data describes exact matching, which is the core of term query.
  3. Final Answer:

    Finds exact matches of the given term in the data -> Option B
  4. Quick Check:

    Term query = exact match [OK]
Quick Trick: Term query matches exactly, no analysis or tokenizing [OK]
Common Mistakes:
MISTAKES
  • Confusing term query with match query that analyzes text
  • Thinking term query sorts results
  • Assuming term query finds similar or partial matches

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes