diff --git a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java index 3390c8a..fdd3889 100644 --- a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java +++ b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java @@ -502,11 +502,10 @@ public class ESJobSearchImpl implements IESJobSearchService wrapper.and(x->x.le(ESJobDocument::getExperience_int,maxValue)); } if(!StringUtil.isEmptyOrNull(esJobSearch.getJobCategory())){ - //wrapper.and(x->x.eq(ESJobDocument::getJobCategory,esJobSearch.getJobCategory())); String targetValue = esJobSearch.getJobCategory(); - wrapper.and(x -> x.like(ESJobDocument::getJobCategory, targetValue) + wrapper.and(x -> x.match(ESJobDocument::getJobTitle, targetValue) .or() - .like(ESJobDocument::getJobTitle, targetValue)); + .match(ESJobDocument::getDescription, targetValue)); } if(!StringUtil.isEmptyOrNull(esJobSearch.getScale())){ Integer maxValue = StringUtil.findMaxValue(esJobSearch.getScale());