Bird
0
0

Which Elasticsearch field type should you use to index a polygon representing a park boundary?

easy🧠 Conceptual Q2 of 15
Elasticsearch - Mappings and Data Types
Which Elasticsearch field type should you use to index a polygon representing a park boundary?
Ageo_point
Bgeo_shape
Ckeyword
Dtext
Step-by-Step Solution
Solution:
  1. Step 1: Identify the data type needed for polygons

    Polygons are complex shapes, so they require the geo_shape type to be indexed properly.
  2. Step 2: Exclude other types

    geo_point only stores single points, and keyword or text are for strings, not shapes.
  3. Final Answer:

    geo_shape -> Option B
  4. Quick Check:

    Polygon data = geo_shape [OK]
Quick Trick: Use geo_shape for polygons, geo_point for single points [OK]
Common Mistakes:
MISTAKES
  • Using geo_point for polygons
  • Confusing keyword/text with geo types
  • Not recognizing shape complexity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes