0

I want to issue the following search query in ElasticSearch.

GET /example1/_search
{
  "query": {
    "has_child": {
      "type": "schedule",
      "query": {
        "bool": {}
      },
      "inner_hits": {},
      "max_children": 10,
      "min_children": 1,
      "score_mode": "min"
    }
  }
}

How do I write the above query in the Rest High Level Client in Java?

Seiji
  • 3
  • 1

1 Answers1

0

Use HasChildQueryBuilder.

Official documentation.

lkatiforis
  • 5,703
  • 2
  • 16
  • 35