Reputation: 55
I use ReactiveElasticsearchClient to query composite aggregation but not return all result.
I mean I add all docCount value in return message manually, the result is not same as the document total number in the index.
And I suddenly found when I use two column as aggregation columns, the value are matched.
So I tried to increase the aggregation columns more and more and found until I use 10 columns as composite aggregation, it works fine. But when I use 11 columns as composite aggregation, the total docCount will be half of total document numbers...
Does ES have some limitation? Why it will reduce aggregation number without alert or warning which is very confused.
Upvotes: 0
Views: 45
Reputation: 952
- Size - The size parameter can be set to define how many composite buckets should be returned. Each composite bucket is considered as a single bucket, so setting a size of 10 will return the first 10 composite buckets created from the value sources. The response contains the values for each composite bucket in an array containing the values extracted from each value source. Defaults to 10.
Upvotes: 0