Bird
0
0

Given this mapping and document, what will be the stored value for the created_at field?

medium📝 Predict Output Q4 of 15
Elasticsearch - Mappings and Data Types
Given this mapping and document, what will be the stored value for the created_at field?
{"mappings": {"properties": {"created_at": {"type": "date", "format": "yyyy/MM/dd HH:mm"}}}}
{"created_at": "2023/07/15 14:30"}
A2023-07-15T14:30:00.000Z
B2023/07/15 14:30
C15-07-2023 14:30
DEpoch milliseconds value
Step-by-Step Solution
Solution:
  1. Step 1: Understand date parsing with custom format

    The mapping defines the format as "yyyy/MM/dd HH:mm". The input matches this format exactly.
  2. Step 2: Elasticsearch stores dates internally in ISO 8601 UTC format

    So the stored value will be converted to ISO 8601 format with time zone Z (UTC).
  3. Final Answer:

    2023-07-15T14:30:00.000Z -> Option A
  4. Quick Check:

    Date stored in ISO 8601 UTC format [OK]
Quick Trick: Elasticsearch stores dates internally as ISO 8601 UTC [OK]
Common Mistakes:
MISTAKES
  • Expecting original string to be stored
  • Confusing input format with stored format
  • Assuming epoch milliseconds without conversion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes