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

DynamicRangeSlider giving "Missing definition for aggregation [match_all]" error #1968

Open
anthonycook opened this issue May 11, 2022 · 1 comment
Assignees
Labels

Comments

@anthonycook
Copy link

Affected Projects
React

Library Version: 3.30.3

Describe the bug
When using the DynamicRangeSlider the request to ElasticSearch is returning the following error:

{
    "error": {
        "root_cause": [
            {
                "type": "parsing_exception",
                "reason": "Missing definition for aggregation [match_all]",
                "line": 1,
                "col": 48
            }
        ],
        "type": "parsing_exception",
        "reason": "Missing definition for aggregation [match_all]",
        "line": 1,
        "col": 48
    },
    "status": 400
}

To Reproduce

Here is how I am using the component:

<DynamicRangeSlider componentId="PriceSlider" dataField="price" />

My ElasticSearch mapping for the price field is:

  "price": {
     "type": "double"
  },

Expected behavior

This uses the "basic usage" example from the docs, is there something else I'm required to add to get this component working?

Additional context
My ElasticSearch version is 7.10.2

@mohdashraf010897
Copy link
Member

mohdashraf010897 commented Jun 8, 2022

@anthonycook It's difficult to reproduce the issue with the information you have provided. More context is always good.🙂

Can you share your request payload? And also your index schema, if possible?

The way you are using the component is fine, and normally the error should not happen. 🧐

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

No branches or pull requests

2 participants