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?