Bird
Raised Fist0

What will happen if you do not specify the 'scroll' parameter in the initial search request when using the Scroll API?

medium📝 Predict Output Q5 of Q15
Elasticsearch - Advanced Patterns
What will happen if you do not specify the 'scroll' parameter in the initial search request when using the Scroll API?
AThe scroll context will not be created, and scrolling will not work
BThe scroll will default to 1 minute
CThe search will return all documents at once
DThe scroll_id will be automatically generated for you
Step-by-Step Solution
Solution:
  1. Step 1: Role of 'scroll' parameter

    The 'scroll' parameter tells Elasticsearch to keep the search context alive for scrolling.
  2. Step 2: Consequence of missing 'scroll'

    Without it, no scroll context is created, so scrolling cannot proceed.
  3. Final Answer:

    No scroll context created; scrolling fails -> Option A
  4. Quick Check:

    Missing 'scroll' param = no scroll context [OK]
Quick Trick: 'scroll' param is mandatory to enable scrolling [OK]
Common Mistakes:
MISTAKES
  • Assuming default scroll time
  • Expecting all docs returned without scroll
  • Thinking scroll_id is auto-generated without scroll param

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes