Bird
0
0

In Elasticsearch, which data type does a term query perform an exact match on?

easy🧠 Conceptual Q1 of 15
Elasticsearch - Basic Search Queries
In Elasticsearch, which data type does a term query perform an exact match on?
AGeo-point fields
BAnalyzed text fields
CDate fields
DKeyword fields
Step-by-Step Solution
Solution:
  1. Step 1: Understand term query behavior

    A term query matches exact values without analysis.
  2. Step 2: Identify suitable field types

    Keyword fields store exact values, unlike analyzed text fields.
  3. Final Answer:

    Keyword fields -> Option D
  4. Quick Check:

    Term queries require exact matches on keyword fields [OK]
Quick Trick: Term query matches exact keyword values only [OK]
Common Mistakes:
MISTAKES
  • Using term query on analyzed text fields expecting partial matches
  • Assuming term query works on date or geo-point fields

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes