feat: There is no way the, elasticsearch
This commit is contained in:
+8
-4
@@ -1174,10 +1174,14 @@ public class SearchCenterServiceImpl implements SearchCenterService {
|
|||||||
boolQueryBuilder.must(multiQuery);
|
boolQueryBuilder.must(multiQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(StringUtils.isNotBlank(searchInfoEO.getNYLXCLASS()) || StringUtils.isNotBlank(searchInfoEO.getCLLX())){
|
if(StringUtils.isNotBlank(searchInfoEO.getNYLXCLASS())){
|
||||||
BoolQueryBuilder boolQueryShould = QueryBuilders.boolQuery();
|
boolQueryBuilder.should(QueryBuilders.multiMatchQuery(searchInfoEO.getNYLXCLASS(),
|
||||||
boolQueryShould = querySeniorMsg(searchInfoEO,boolQueryShould);
|
"textContent"
|
||||||
boolQueryBuilder.must(boolQueryShould);
|
).minimumShouldMatch("100%").field("title",10f));
|
||||||
|
}else if(StringUtils.isNotBlank(searchInfoEO.getCLLX())){
|
||||||
|
boolQueryBuilder.should(QueryBuilders.multiMatchQuery(searchInfoEO.getCLLX(),
|
||||||
|
"textContent"
|
||||||
|
).minimumShouldMatch("100%").field("title",10f));
|
||||||
}
|
}
|
||||||
|
|
||||||
HighlightBuilder hiBuilder=new HighlightBuilder();
|
HighlightBuilder hiBuilder=new HighlightBuilder();
|
||||||
|
|||||||
Reference in New Issue
Block a user