opensearch-project / opensearch-api-specification

API specification for OpenSearch
Apache License 2.0
33 stars 60 forks source link

[BUG]Change shape query to xy query and add xy point and xy shape to the spec #516

Closed kolchfa-aws closed 1 month ago

kolchfa-aws commented 2 months ago

What is the bug?

OpenSearch does not support a shape query. Instead, to search cartesian shapes, it supports an xy query, which works on xy points and xy shapes.

We need to change shape query to xy query in the query dsl spec and add xy point and xy shape to the mapping spec.

dblock commented 2 months ago

Is this a feature request to OpenSearch core?

kolchfa-aws commented 2 months ago

It's a request to update the spec because OpenSearch does not support shape query and it's present in the spec. Instead, OpenSearch supports an xy query so we should replace "shape" with "xy".

kolchfa-aws commented 2 months ago

@dblock I can give it a try if you want to assign this to me

kolchfa-aws commented 2 months ago

Additionally, I will correct the geoshape parameters as well (some are deprected)