Bird
Raised Fist0

Why does Elasticsearch require a sort clause when using the Point-in-time API for searches?

hard🧠 Conceptual Q10 of Q15
Elasticsearch - Advanced Patterns

Why does Elasticsearch require a sort clause when using the Point-in-time API for searches?

ATo automatically close the PIT after the search.
BTo speed up the search by using index sorting.
CBecause PIT only works with sorted indices.
DTo ensure a stable and consistent order of results across pages.
Step-by-Step Solution
Solution:
  1. Step 1: Understand PIT search requirements

    PIT freezes index state, but sorting ensures consistent result order across pages.
  2. Step 2: Analyze why sort is needed

    Without sort, result order can vary, breaking pagination consistency.
  3. Final Answer:

    To ensure a stable and consistent order of results across pages. -> Option D
  4. Quick Check:

    PIT requires sort for stable pagination [OK]
Quick Trick: Sort clause ensures stable PIT search pagination [OK]
Common Mistakes:
MISTAKES
  • Thinking sort speeds up search
  • Believing PIT only works on sorted indices
  • Assuming sort closes PIT automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes