搜索中心-技术领多选
This commit is contained in:
+2
-2
@@ -338,7 +338,6 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
queryMap.put(key, queryMapTemp);
|
||||
map.put("match",queryMap);
|
||||
}
|
||||
|
||||
must.add(map);
|
||||
}
|
||||
}
|
||||
@@ -360,7 +359,8 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService {
|
||||
map1.put("wildcard",map);
|
||||
should.add(map1);
|
||||
}
|
||||
must.add(should);
|
||||
JSONObject jsonObject = jeroElasticsearchTemplate.buildBoolQuery(null, null, should);
|
||||
must.add(jsonObject);
|
||||
}else{
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
Map<String, Object> queryMap = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user