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

IntervalQueryRulePrefix Source is wrong. Needs "prefix" instead of "query" #1566

Closed
martinrode opened this issue Jan 7, 2022 · 1 comment
Assignees
Milestone

Comments

@martinrode
Copy link

Please use the following questions as a guideline to help me answer
your issue/question without further inquiry. Thank you.

Which version of Elastic are you using?

[x] elastic.v7 (for Elasticsearch 7.x)
[ ] elastic.v6 (for Elasticsearch 6.x)
[ ] elastic.v5 (for Elasticsearch 5.x)
[ ] elastic.v3 (for Elasticsearch 2.x)
[ ] elastic.v2 (for Elasticsearch 1.x)

Please describe the expected behavior

{
    "prefix": {
         "prefix": "horst"
    }
}

Please describe the actual behavior

{
    "prefix": {
         "query": "horst"
    }
}

Results in:

[{"root_cause":null,"type":"x_content_parse_exception","reason":"[1:551] [prefix] unknown field [query]"}]]

Any steps to reproduce the behavior?

elastic.NewIntervalQueryRulePrefix("horst").Source()
@olivere
Copy link
Owner

olivere commented Jan 7, 2022

Thanks for reporting. Will be fixed in the next release.

@olivere olivere added this to the 7.0.31 milestone Jan 7, 2022
@olivere olivere self-assigned this Jan 7, 2022
@olivere olivere closed this as completed in 15cfb75 Jan 7, 2022
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

2 participants