Bird
0
0

You have a geo_point field storing user locations and want to aggregate users by distance ranges from a store. Which Elasticsearch feature should you use?

hard🚀 Application Q9 of 15
Elasticsearch - Mappings and Data Types
You have a geo_point field storing user locations and want to aggregate users by distance ranges from a store. Which Elasticsearch feature should you use?
Arange aggregation on geo_shape
Bterms aggregation on geo_point
Chistogram aggregation on geo_point
Dgeo_distance aggregation
Step-by-Step Solution
Solution:
  1. Step 1: Identify aggregation for distance ranges

    The geo_distance aggregation groups documents by distance ranges from a point, perfect for geo_point fields.
  2. Step 2: Exclude other aggregations

    Terms aggregation is for keywords, range aggregation is for numeric or date fields, histogram is numeric-based and not for geo data.
  3. Final Answer:

    geo_distance aggregation -> Option D
  4. Quick Check:

    Distance range grouping = geo_distance aggregation [OK]
Quick Trick: Use geo_distance aggregation for distance buckets [OK]
Common Mistakes:
MISTAKES
  • Using terms aggregation on geo_point
  • Trying range aggregation on geo_shape
  • Using histogram for geo data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes