ElasticSearch resthighlevel client bool query request

I am trying to translate this query to java code (HighLevelRestClient):

{
"query":{
"bool": {
"must": [
{
"query_string": {
"query": "(("PUT" OR "POST") AND "REST" AND ("BRI" OR "BRIEXT" OR "TMP"))"
}
}
]
}
}
}

I tried this request with postman and it works fine, And I want to try it with the elasticSearch resthighlevel client.

QueryBuilder matchQueryBuilder = QueryBuilders.boolQuery().must();

I don't know what to put inside the must.

Could someone help me with this?

A QueryBuilders.queryString(...)?

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