Authored by Gino Zhang

搜索建议词增加品牌+小品类 从ES聚合获取

... ... @@ -76,7 +76,7 @@ public class BrandWithSortNameSuggestionDiscoverer extends AbstractSuggestionDis
String brandName = brandNameMap.get(brandId);
if (brandBucket.getAggregations() != null && brandBucket.getAggregations().get("smallSortAgg") != null) {
MultiBucketsAggregation smallSortAgg = (MultiBucketsAggregation) searchResult.getAggMaps().get("smallSortAgg");
MultiBucketsAggregation smallSortAgg = brandBucket.getAggregations().get("smallSortAgg");
Iterator<? extends MultiBucketsAggregation.Bucket> smallSortBucketIterator = smallSortAgg.getBuckets().iterator();
while (smallSortBucketIterator.hasNext()) {
MultiBucketsAggregation.Bucket smallSortBucket = smallSortBucketIterator.next();
... ...