Which class and functions in Java code to use for Aggregation queries using Low Level Rest Client for elastic. Which Class to be used. AggregationBuilder class seems to be not present in older version like in High Level Client.
Like for below body of rest call what is the way to write Java code for getting search response using low level client on elastic 5.6.10.
{
"aggs": {
"total": { "sum": { "field": "accountbalance" } }
}
}
Did not get manually meaning. You mean it can be only done in browser search using _search url only and not from java code.
You mean with Java code there is no way to get Aggregate query search using RestClient in low level clients in older elastic version? Or there is some way or other.
I meant that with the Low Level client, you need to build the request as a Json document (a String basically) and parse yourself the json response (a String).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.