...
|
...
|
@@ -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();
|
...
|
...
|
|