You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] "shape" should not be required in GeoShapeQueryField #2011
From a quick check, this seems like a real client/model mismatch rather than only a usage question. The OpenSearch geoshape docs show the pre-indexed shape form with indexed_shape and no sibling shape, while the generated GeoShapeQueryField currently treats shape as required.
I also noticed that this requiredness appears to come from the API spec/schema used for generation, not just from the builder itself. Before opening a PR, I wanted to confirm the preferred contribution path:
Is the intended API contract that a geo shape query field can use either shape or indexed_shape?
Should this be addressed in the API specification first and then regenerated into opensearch-java, or is a direct change in this repo preferred?
Activity
lsh1215 commentedon Jun 30, 2026
Hi, I’d like to take a look at this.
From a quick check, this seems like a real client/model mismatch rather than only a usage question. The OpenSearch geoshape docs show the pre-indexed shape form with
indexed_shapeand no siblingshape, while the generatedGeoShapeQueryFieldcurrently treatsshapeas required.I also noticed that this requiredness appears to come from the API spec/schema used for generation, not just from the builder itself. Before opening a PR, I wanted to confirm the preferred contribution path:
shapeorindexed_shape?opensearch-java, or is a direct change in this repo preferred?If this sounds right, I’m happy to work on it.
xluo-aws commentedon Jul 4, 2026