The query is not responding to the change in 2nd size. It is only responding to the 1st size. The result remains same even if i change the value of 2nd size. Also, the output value are not distinct (there are duplicates).
It seems working partially as the output is "Name". If i understood correctly, it won't output Name if aggregation is not working, right?
Are the aggregates visible as output? I have multiple queries,second query consuming the output of first query. I am passing the hits of the first query as input to second. Is there some other way of passing the aggregates?
You are describing something that elasticsearch doesn't do. So, I can only assume that you are using elasticsearch via some application in the front of the elasticsearch. So the answer to your question really depends on the application that you are using.
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.