You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll have to excuse me if this is a dumb question, since I'm new to both elasticsearch and this package.
But this is as far as I've gotten:
nested:=NewNestedAggregation().Path("deposits")
scriptq:=elastic.NewScriptQuery(NewScript("return doc['deposits.depositA'].value + doc['deposits.depositB'].value"))
hist:=NewHistogramAggregation().Field("counter").Interval(2).SubAggregation("avg", scriptq)
client.Search().Index(indexName).Aggregation() ... // this is where I get stuck
I'm not sure of the type of aggregation I can attach in Aggregation().
I've been reviewing the _test files of this package to get some idea on what to do but a lot of this is still going over my head.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
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)
I'm having difficulty generating the desired histogram query with sub aggregations.
This is the query I want to generate.
You'll have to excuse me if this is a dumb question, since I'm new to both elasticsearch and this package.
But this is as far as I've gotten:
I'm not sure of the type of aggregation I can attach in
Aggregation()
.I've been reviewing the
_test
files of this package to get some idea on what to do but a lot of this is still going over my head.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: