--

Hi, glad to have you found it useful

I assumed the question is for complex queries in Golang itself right?

I myself havent really used a lot of aggr query myself.

But from what i have seen you can try something like this

https://github.com/olivere/elastic/blob/c25a1899f662874f0f7c4316aa6fb012a089373d/search_aggs_test.go#L184

the olivere library does provide some references that you can refer to in those test files, might not be so much of a reference but it's better than nothing

if you need to have multiple queries you can do append depending on the structure, this does takes some trial and error at first.

--

--

No responses yet