feat:There is no way the

This commit is contained in:
super_liu
2021-08-10 16:29:42 +08:00
parent 7af19a8dca
commit 6c351c1d33
@@ -288,8 +288,10 @@ public class SearchCenterServiceImpl implements SearchCenterService {
if(json instanceof org.json.JSONArray){ if(json instanceof org.json.JSONArray){
fields = JSONObject.parseArray(collectAttrMap.get(field).toString(),String.class); fields = JSONObject.parseArray(collectAttrMap.get(field).toString(),String.class);
}else { }else {
if(!json.equals("null")){
fields.add(collectAttrMap.get(field).toString()); fields.add(collectAttrMap.get(field).toString());
} }
}
if(!fields.isEmpty()){ if(!fields.isEmpty()){
for (String str : fields) { for (String str : fields) {
boolQueryBuilderMust.must(QueryBuilders.wildcardQuery(keyWordField, "*"+str+"*")); boolQueryBuilderMust.must(QueryBuilders.wildcardQuery(keyWordField, "*"+str+"*"));