Bird
0
0

Which Elasticsearch type should you use if you want to store an object with multiple fields but do not need to query each object in an array separately?

easy🧠 Conceptual Q2 of 15
Elasticsearch - Mappings and Data Types
Which Elasticsearch type should you use if you want to store an object with multiple fields but do not need to query each object in an array separately?
Aobject
Bnested
Ckeyword
Dtext
Step-by-Step Solution
Solution:
  1. Step 1: Identify object type use case

    The object type stores JSON objects with multiple fields but does not support independent querying of objects inside arrays.
  2. Step 2: Eliminate other types

    Nested is for independent querying, keyword and text are for string fields, not objects.
  3. Final Answer:

    object -> Option A
  4. Quick Check:

    Use object type for grouped fields without separate array queries [OK]
Quick Trick: Use object type for grouped fields without nested querying [OK]
Common Mistakes:
MISTAKES
  • Choosing nested when independent querying is not needed
  • Confusing keyword/text with object types
  • Assuming object supports nested queries

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes