文档库--搜索全部修改
This commit is contained in:
+3
@@ -290,6 +290,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
fieldList.add("content");
|
||||
|
||||
JSONArray queryMapJson = new JSONArray();
|
||||
if(StringUtils.isNotBlank(selectValue)){
|
||||
for (String field : fieldList) {
|
||||
Map<String, Object> queryMap = new HashMap<>();
|
||||
Map<String, Object> map2 = new HashMap<>();
|
||||
@@ -297,6 +298,8 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
queryMap.put("match", map2);
|
||||
queryMapJson.add(queryMap);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//基础添加封装
|
||||
JSONObject jsonObject = jeroElasticsearchTemplate.buildBoolQuery(null, null, queryMapJson);
|
||||
|
||||
Reference in New Issue
Block a user