suggestTips的pageSize设置为10
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -364,7 +364,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl | @@ -364,7 +364,7 @@ public class SuggestServiceImpl implements ISuggestService, ApplicationEventPubl | ||
364 | QueryBuilder queryBuilder = StringUtils.isNotEmpty(queryWord) ? QueryBuilders.matchQuery("source", queryWord) : QueryBuilders.matchAllQuery(); | 364 | QueryBuilder queryBuilder = StringUtils.isNotEmpty(queryWord) ? QueryBuilders.matchQuery("source", queryWord) : QueryBuilders.matchAllQuery(); |
365 | searchParam.setQuery(queryBuilder); | 365 | searchParam.setQuery(queryBuilder); |
366 | searchParam.setPage(page); | 366 | searchParam.setPage(page); |
367 | - searchParam.setSize(1); | 367 | + searchParam.setSize(10); |
368 | if (updateTime > 0) { | 368 | if (updateTime > 0) { |
369 | searchParam.setFiter(QueryBuilders.rangeQuery("updateTime").gte(updateTime)); | 369 | searchParam.setFiter(QueryBuilders.rangeQuery("updateTime").gte(updateTime)); |
370 | } | 370 | } |
-
Please register or login to post a comment