Bird
0
0

Why does Elasticsearch store keyword fields without analysis, and what is the impact on search and aggregation?

hard🧠 Conceptual Q10 of 15
Elasticsearch - Mappings and Data Types
Why does Elasticsearch store keyword fields without analysis, and what is the impact on search and aggregation?
AKeyword fields are compressed and cannot be searched
BKeyword fields are analyzed to support full-text search
CKeyword fields are stored as-is to allow exact match and efficient aggregations
DKeyword fields are only used for storing numeric data
Step-by-Step Solution
Solution:
  1. Step 1: Understand keyword field storage

    Keyword fields store exact values without analysis to preserve original content.
  2. Step 2: Impact on search and aggregation

    This allows exact match queries and efficient aggregations on those fields.
  3. Final Answer:

    Keyword fields are stored as-is to allow exact match and efficient aggregations -> Option C
  4. Quick Check:

    Keyword fields = exact match + aggregations [OK]
Quick Trick: Keyword fields store exact values for matches and aggregations [OK]
Common Mistakes:
MISTAKES
  • Thinking keyword fields are analyzed
  • Assuming keyword fields can't be searched
  • Confusing keyword with numeric fields

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes