Skip to content
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

mappings: multiple locations with geometry fail indexing #1807

Open
slint opened this issue Sep 2, 2024 · 0 comments
Open

mappings: multiple locations with geometry fail indexing #1807

slint opened this issue Sep 2, 2024 · 0 comments

Comments

@slint
Copy link
Member

slint commented Sep 2, 2024

To reproduce, try to create a draft via the REST API with the following metadata:

data = {
    "metadata": {
        ...
        "locations": {
            "features": [
                {"geometry": {"type": "Point", "coordinates": [10.2, 5.0]}},
                {"geometry": {"type": "Point", "coordinates": [5.1, 1.23]}},
            ]
        }
    }
}

Will raise the following error from OpenSearch:

{'error': {'reason': 'DocValuesField "metadata.locations.features.geometry" '
                     'appears more than once in this document (only one value '
                     'is allowed per field)',
           'root_cause': [{'reason': 'DocValuesField '
                                     '"metadata.locations.features.geometry" '
                                     'appears more than once in this document '
                                     '(only one value is allowed per field)',
                           'type': 'illegal_argument_exception'}],
           'type': 'illegal_argument_exception'},
 'status': 400}

Seems to be related to opensearch-project/OpenSearch#10958, which in theory has been fixed, so probably needs further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant