how to use ES HighLevelRestClient
search by a custom JSON.
I have a query JSON like:
{
"from": 0,
"size": 20,
"query": {
"bool": {
"must": [
{
"match": {
"name": "test"
}
}
]
}
}
}
this JSON generated by mustache template mustache java . cause I don't want to use QueryBuilder
.
so I want to know how to search by custom JSON use HightLevelClient?