...
|
...
|
@@ -55,7 +55,7 @@ public class SortNameWithDetailSuggestionDiscoverer extends AbstractSuggestionDi |
|
|
|
|
|
SearchParam searchParam = new SearchParam();
|
|
|
searchParam.setSize(0);
|
|
|
searchParam.setFiter(QueryBuilders.termsQuery("status", Integer.valueOf(1)));
|
|
|
searchParam.setFiter(QueryBuilders.termQuery("status", Integer.valueOf(1)));
|
|
|
searchParam.addAbstractAggregationBuilder(AggregationBuilders.terms("smallSortAgg").field("smallSortId").size(100)
|
|
|
.subAggregation(AggregationBuilders.terms("colorNameAgg").field("colorNames").size(10))
|
|
|
.subAggregation(AggregationBuilders.terms("styleAgg").field("style").size(10)));
|
...
|
...
|
|