Skip to content

Commit

Permalink
Updating comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Dec 10, 2024
1 parent 7faaaad commit 7c64752
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public Map<Integer, Double> getRankAggregatedClickThrough() throws Exception {
final QueryBuilder findRangeNumber = QueryBuilders.rangeQuery("event_attributes.position.ordinal").lte(parameters.getMaxRank());
final QueryBuilder queryBuilder = new BoolQueryBuilder().must(findRangeNumber);

// Order the aggregations by _id and not by value.
// Order the aggregations by key and not by value.
final BucketOrder bucketOrder = BucketOrder.key(true);

final TermsAggregationBuilder positionsAggregator = AggregationBuilders.terms("By_Position").field("event_attributes.position.ordinal").order(bucketOrder).size(parameters.getMaxRank());
Expand Down

0 comments on commit 7c64752

Please sign in to comment.