Bird
0
0

Which Elasticsearch field type is best for storing exact values like IDs or tags that should not be analyzed?

easy🧠 Conceptual Q1 of 15
Elasticsearch - Mappings and Data Types
Which Elasticsearch field type is best for storing exact values like IDs or tags that should not be analyzed?
Akeyword
Btext
Cinteger
Ddate
Step-by-Step Solution
Solution:
  1. Step 1: Understand field types for exact matching

    Keyword fields store exact values without analysis, suitable for IDs or tags.
  2. Step 2: Compare with text field usage

    Text fields are analyzed for full-text search, not exact matching.
  3. Final Answer:

    keyword -> Option A
  4. Quick Check:

    Exact match field = keyword [OK]
Quick Trick: Use keyword for exact matches, text for full-text search [OK]
Common Mistakes:
MISTAKES
  • Confusing text with keyword for exact matches
  • Using integer for string values
  • Assuming text fields store exact values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes