Authored by hugufei

聚合结果由取1000个品牌改为200个品牌

@@ -33,7 +33,8 @@ public class BrandAggregation extends AbstractAggregation{ @@ -33,7 +33,8 @@ public class BrandAggregation extends AbstractAggregation{
33 33
34 @Override 34 @Override
35 public AbstractAggregationBuilder getBuilder() { 35 public AbstractAggregationBuilder getBuilder() {
36 - return AggregationBuilders.terms(aggName()).field("brandId").size(1000); 36 + //return AggregationBuilders.terms(aggName()).field("brandId").size(1000);
  37 + return AggregationBuilders.terms(aggName()).field("brandId").size(200);
37 } 38 }
38 39
39 @Override 40 @Override