Write queries using RestClient JAVA

Elasticsearch 5.6 has got released and it has released builders for the restClient. How can we build queries for searching purpose? There is no documentation given/ examples anywhere on how to use these builders.

Are you looking for this? https://www.elastic.co/guide/en/elasticsearch/client/java-rest/5.6/java-rest-high-search.html