Transform.GetAsync() not deserializing a percentiles aggregation with a script
See original GitHub issueNEST/Elasticsearch.Net version: 7.12.1
Elasticsearch version: 7.11.2
Description of the problem including expected versus actual behavior: I have a transform with an aggregation like this
"my_median": {
"percentiles": {
"script": "doc['field'].value * 2",
"percents": [
50
]
}
}
But calling Transform.GetAsync() on that transform returns an object with the Script field as null
Steps to reproduce:
- Create transform with a median aggregation based on a script
- call Transform.GetAsync()
- inspect returned object
Expected behavior The Script field should be non-null and match the transform definition
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Percentiles aggregation | Elasticsearch Guide [8.9]
A multi-value metrics aggregation that calculates one or more percentiles over numeric values extracted from the aggregated documents.
Read more >HttpClient
This post shows how HTTP route parameters, a HTTP request body or HTTP request query string parameters can be used for authorization in...
Read more >Apache Solr Release Notes
Apache Solr is an open source enterprise search server based on the Apache Lucene Java search library, with XML/HTTP and JSON APIs, hit...
Read more >Elasticsearch version 7.6.0
New Histogram field mapper that supports percentiles aggregations. ... Scripting: ScriptFactory not required by compile #50344 (issue: ...
Read more >Lettuce Reference Guide
An aggregation of values can be achieved using the reduce() transformation. It applies a function to each value emitted by a Publisher<T> ,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for confirming @karoberts. I’ll keep this open to track whether this can be safely implemented in 7.x.
@karoberts Apologies for the long delay on this one. I have added a serialisation fix which adds support for the string-based scripts that will go out in the next release.