Bird
Raised Fist0

Which of the following is the correct JSON structure to open a PIT on index products?

easy📝 Syntax Q3 of Q15
Elasticsearch - Advanced Patterns

Which of the following is the correct JSON structure to open a PIT on index products?

A{"index": "products"}
B{"indices": ["products"]}
C{"index": ["products"]}
D{"indices": "products"}
Step-by-Step Solution
Solution:
  1. Step 1: Recall PIT open syntax

    The PIT open API expects a JSON with key "index" and a string value for the index name.
  2. Step 2: Check options

    {"index": "products"} uses "index": "products" which is correct; others misuse plural or array.
  3. Final Answer:

    {"index": "products"} -> Option A
  4. Quick Check:

    PIT open JSON uses "index": "name" [OK]
Quick Trick: Use "index": "name" to open PIT, not plural or array [OK]
Common Mistakes:
MISTAKES
  • Using "indices" instead of "index"
  • Passing index name as array instead of string
  • Confusing key names in JSON

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes