...
|
...
|
@@ -143,7 +143,7 @@ public class ProductListServiceImpl implements IProductListService { |
|
|
searchParam.setFiter(QueryBuilders.rangeQuery("count").gte(10)); //TODO: 针对不同的搜索条件选择不同的count
|
|
|
|
|
|
List<SortBuilder> sortBuilders = new ArrayList<SortBuilder>();
|
|
|
sortBuilders.add(SortBuilders.fieldSort("_score").order(SortOrder.DESC));
|
|
|
//sortBuilders.add(SortBuilders.fieldSort("_score").order(SortOrder.DESC));
|
|
|
sortBuilders.add(SortBuilders.fieldSort("weight").order(SortOrder.DESC));
|
|
|
sortBuilders.add(SortBuilders.fieldSort("count").order(SortOrder.DESC));
|
|
|
searchParam.setSortBuilders(sortBuilders);
|
...
|
...
|
|