Ask bosses, recently doing a springbooti project, the customer defines ElasticSearch database query rules, is a black box for me, my task is to get these queries to search after the rules,
In Python, DSL statement can directly be used as a parameter to the query methods:
The body={
"Query" : {
"Match_all" : {}
}
}
Es. The search (index="my_index", doc_type="test_type", body=body)
Could you tell me how to implement in Java?