Showing
1 changed file
with
1 additions
and
0 deletions
@@ -105,6 +105,7 @@ public class CutdownPageSceneService extends AbstractPageSceneService { | @@ -105,6 +105,7 @@ public class CutdownPageSceneService extends AbstractPageSceneService { | ||
105 | List<SortBuilder<?>> sortBuilders = new ArrayList<>(); | 105 | List<SortBuilder<?>> sortBuilders = new ArrayList<>(); |
106 | sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.salesNum).order(SortOrder.DESC)); | 106 | sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.salesNum).order(SortOrder.DESC)); |
107 | sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.id).order(SortOrder.DESC)); | 107 | sortBuilders.add(SortBuilders.fieldSort(ProductIndexEsField.id).order(SortOrder.DESC)); |
108 | + searchParam.setSortBuilders(sortBuilders); | ||
108 | 109 | ||
109 | //5、执行搜索 | 110 | //5、执行搜索 |
110 | SearchResult searchResult = searchCommonService.doSearch(ISearchConstants.INDEX_NAME_PRODUCT_INDEX, searchParam); | 111 | SearchResult searchResult = searchCommonService.doSearch(ISearchConstants.INDEX_NAME_PRODUCT_INDEX, searchParam); |
-
Please register or login to post a comment