Bird
0
0

Given an Elasticsearch index with documents containing a field 'age', what will this query return? {"query": {"range": {"age": {"gte": 30}}}}

medium📝 Predict Output Q4 of 15
Elasticsearch - Index Management
Given an Elasticsearch index with documents containing a field 'age', what will this query return? {"query": {"range": {"age": {"gte": 30}}}}
ADocuments where age is greater than or equal to 30
BDocuments where age is less than 30
CDocuments where age equals exactly 30
DDocuments with missing age field
Step-by-Step Solution
Solution:
  1. Step 1: Understand the range query with 'gte'

    'gte' means 'greater than or equal to', so it filters documents with age >= 30.
  2. Step 2: Match the query to the options

    Documents where age is greater than or equal to 30 correctly describes documents with age greater than or equal to 30.
  3. Final Answer:

    Documents where age is greater than or equal to 30 -> Option A
  4. Quick Check:

    Range query with gte 30 = Documents with age >= 30 [OK]
Quick Trick: 'gte' means greater than or equal to in range queries [OK]
Common Mistakes:
MISTAKES
  • Confusing 'gte' with 'lt' or 'lte'
  • Thinking it matches only exact 30
  • Assuming it returns documents missing the field

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes