修复搜索引擎模式下按更新时间筛选的bug

This commit is contained in:
xiongxiaoyang 2020-06-22 11:01:23 +08:00
parent 5af570a514
commit c7642ac2ef

View File

@ -93,7 +93,7 @@ public class SearchServiceImpl implements SearchService {
boolQueryBuilder.filter(QueryBuilders.rangeQuery("wordCount").gte(params.getWordCountMin()).lte(params.getWordCountMax()));
if (params.getUpdateTimeMin() != null) {
boolQueryBuilder.filter(QueryBuilders.rangeQuery("lastIndexUpdateTime").gte(params.getUpdateTimeMin()));
boolQueryBuilder.filter(QueryBuilders.rangeQuery("lastIndexUpdateTime").gte(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(params.getUpdateTimeMin())));
}