-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Breaking regression 2.8 -> 2.9 for geo_shape #10795
Comments
We have the same problem in our solution. Furthermore we don't see how to make a clean rolling upgrade for this because 1/ if the translog is not flushed properly, when the nodes restart in 2.9+ it generates errors during the application of the translog that seems to generate data loss ( we have some example of document disappearing ) 2/ during migration the index is updated with the doc_values to "true" (default value) and it is no more possible to update the mapping to set the doc_values to false.
3/ we can't set the doc_values to false before the upgrade since it generate this error :
Any hint on how to migrate to 2.9+ without needing to reset our indices ? @simlu If you can recreate your indices from scratch, adding doc_values = false to the mapping do the job, you can still have multiple geo_shape and filter in them. But you will of course not be able to aggregate on this field |
@navneet1v Could you take a look? |
Duplicate issue for #10958 |
Let's close as dup. |
Describe the bug
Can no longer use multiple polygons in geo_shape field.
To Reproduce
Steps to reproduce the behavior:
run.sh
mapping.json
data.json
query1.json
query2.json
query3.json
run.sh
.result1.json
,result2.json
andresult3.json
Expected behavior
Geo shape with multiple polygons gets indexed and is queryable. Results are as expected. This works in 2.8, but no longer works in 2.9 and fails with the error
"DocValuesField \"polygons\" appears more than once in this document (only one value is allowed per field)"
Plugins
None
Host/Environment (please complete the following information):
opensearchproject/opensearch:2.9.0
Additional context
This possibly wasn't supposed to work to begin with, but it did for a very long time and people are relying on it (we were!). Consider marking this as a breaking change, or at the very least documenting the behaviour change in the changelogs.
I'm suspecting this has to do with the changelog note in 2.9 Geospatial tools add support for three types of aggregations using geoshapes data: geo_bounds, geo_hash, and geo_tile.
Looking forward to your feedback on this ticket, L~
The text was updated successfully, but these errors were encountered: