Skip to content

Aggregate/query by geometry-type with geo_shape fields #49569

@thomasneirynck

Description

@thomasneirynck

for geometries indexed into the geo_shape field, it would be helpful to be able to aggregate on the type of geometry.

Example use cases:

(1) for UX-applications that need to present a different UX based on the type-of geometries stored in the index.

  • e.g. for styling,
    • show an icon-editor for indices that have points in geo_shape
    • show a fill/outline-editor for indices that have polygons/multipolygons stored.

(2) count/unique counts are especially relevant, but could be appropriate for all aggregations

(3) Similarly, it would be great to be able to specify filters on the data based on geometry-type
- e.g. only query for points for POI-type data.

This would be similar to the ST_GeometryType function in SQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Analytics/GeoIndexing, search aggregations of geo points and shapes>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions