Repository is a high level client that offers predefined methods to query against the fields on the elasticsearch. But it cannot be used to send complex queries to elasticsearch.
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html