Porting to High Level Rest Client


The transport client supports the following Elastic example:

AggregationBuilder aggregation =

		SearchResponse sr = client.prepareSearch()
		        .setQuery(QueryBuilders.termQuery("gender", "male"))

I cannot locate in the REST client a point where .setQuery() can be invoked.
My objective is to establish an overall query for a multi-bucket aggregation.



for example

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.