修复搜索引擎模式下按更新时间筛选的bug
This commit is contained in:
1 parent
5af570a514
commit
c7642ac2ef
1 file changed
+1
-1
@@ -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())));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user