-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Closed
Copy link
Labels
:Analytics/AggregationsAggregationsAggregationsTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)stalledteam-discuss
Description
This is coming from #32068 (comment)
Quote @rjernst :
Putting the bucket accessors inside params is how we currently do this, but I don't think it is how we should do this long term. Params should be solely for user provided params (they should be read only, since they are parsed once and should be the same across all documents). Can you please open an issue to discuss with the search/aggs team how these buckets should be accessible in the future? With contexts we could potentially not use buckets_path at all, and have a buckets variable available in the script. eg:
Current:
"bucket_selector": {
"buckets_path": {
"foobar": "foo>bar"
},
"script": "params.foobar > 200"
}
Potential new script use:
"bucket_selector": {
"script": "buckets['foo']['bar'].value > 200"
}
polyfractal
Metadata
Metadata
Assignees
Labels
:Analytics/AggregationsAggregationsAggregationsTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)stalledteam-discuss