Bird
0
0

What will be the output of this Elasticsearch request? GET /store/_doc/100 with a document existing for ID '100'.

medium📝 Predict Output Q5 of 15
Elasticsearch - Document Operations
What will be the output of this Elasticsearch request? GET /store/_doc/100 with a document existing for ID '100'.
AA JSON with only '_id' and no '_source'
BA JSON containing '_source' with document fields and 'found': true
CAn empty JSON object
DA 404 error response
Step-by-Step Solution
Solution:
  1. Step 1: Understand response for existing document retrieval

    Elasticsearch returns the document fields inside '_source' and 'found': true.
  2. Step 2: Match output to options

    A JSON containing '_source' with document fields and 'found': true correctly describes the JSON response with '_source' and 'found': true.
  3. Final Answer:

    A JSON containing '_source' with document fields and 'found': true -> Option B
  4. Quick Check:

    Existing doc returns '_source' and 'found': true [OK]
Quick Trick: Existing doc returns '_source' and 'found': true in JSON [OK]
Common Mistakes:
MISTAKES
  • Expecting no '_source' field
  • Expecting empty JSON
  • Mistaking 404 error for existing doc

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes