We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using filter aggregation with an inline script as filter nest generates an incorrect query to elasticsearch.
The following code: .Filter("NAME", htw => htw.Filter(htwFlt => htwFlt.Script(hwScrpt => hwScrpt.Inline("SCRIPT "))))
.Filter("NAME", htw => htw.Filter(htwFlt => htwFlt.Script(hwScrpt => hwScrpt.Inline("SCRIPT "))))
generates the following query:
"NAME": { "filter": { "script": { "inline": "SCRIPT" } },
Elasticsearch responds with [script] query does not support [inline] Changing the query to:
"NAME": { "filter": { "script": { "script": "SCRIPT" } },
produces the correct result.
The text was updated successfully, but these errors were encountered:
Which version of Elasticsearch are you using?
Sorry, something went wrong.
Version 2.2.1
Definitely a bug on our end i just pushed a fix for this
#1944
Thanks a ton for raising the issue 👍
Merge pull request #1944 from elastic/fix/script-query-serialization
04fbfeb
fix #1931 script query was not serializing properly
Closed via #1944
Mpdreamz
No branches or pull requests
When using filter aggregation with an inline script as filter nest generates an incorrect query to elasticsearch.
The following code:
.Filter("NAME", htw => htw.Filter(htwFlt => htwFlt.Script(hwScrpt => hwScrpt.Inline("SCRIPT "))))
generates the following query:
"NAME": { "filter": { "script": { "inline": "SCRIPT" } },
Elasticsearch responds with [script] query does not support [inline]
Changing the query to:
"NAME": { "filter": { "script": { "script": "SCRIPT" } },
produces the correct result.
The text was updated successfully, but these errors were encountered: