Union of queries in highRestClient java 7.9.1

I try to do few selects in elk and union results of query
Like in sql
(select .... )
UNION
(select..)
Is there way todo it in one request ?
Thanks

Create your queries as usual and wrap them into a bool query that only has two should clauses containing those two queries. See Boolean query | Elasticsearch Guide [8.1] | Elastic for some more info!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.