1.修改移动端岗位名称精准搜索和去掉打分排序

2.面试邀约返回会议类型
This commit is contained in:
chenshaohua
2026-07-21 13:29:28 +08:00
parent e9a9509f7c
commit 52189b238f
2 changed files with 5 additions and 6 deletions

View File

@@ -705,9 +705,7 @@ public class ESJobSearchImpl implements IESJobSearchService
// }
}
if(hasText(jobQuery.getJobTitle())){
wrapper.and(a->a.match(ESJobDocument::getJobTitle,jobQuery.getJobTitle().trim(),5.0f)
.or()
.match(ESJobDocument::getDescription,jobQuery.getJobTitle().trim(),1.0f));
wrapper.and(a->a.match(ESJobDocument::getJobTitle,jobQuery.getJobTitle().trim(),5.0f));
}
if(hasText(jobQuery.getEducation())){
// 支持逗号分隔的多值筛选(如 "3,4"
@@ -775,8 +773,8 @@ public class ESJobSearchImpl implements IESJobSearchService
wrapper.le(ESJobDocument::getPostingDate, DateUtils.ES_DATE_FORMATTER.format(endDate.toInstant()));
}
// 先开启打分、优先按匹配分数排序(关键词前台命中越高越靠前)
wrapper.trackScores();
wrapper.sortByScore(SortOrder.DESC);
// wrapper.trackScores();
// wrapper.sortByScore(SortOrder.DESC);
if(Objects.nonNull(jobQuery.getOrder())){
switch (jobQuery.getOrder()) {
case 0: // 推荐:权重 → 最新发布

View File

@@ -27,6 +27,7 @@
<result property="updateTime" column="update_time"/>
<result property="remark" column="remark"/>
<result property="isRead" column="is_read"/>
<result property="meetingType" column="meeting_type"/>
</resultMap>
<!-- VO 带公司名和岗位名继承基础映射jobTitle 来自关联查询的实时数据) -->
@@ -65,7 +66,7 @@
t.interview_time, t.interview_method, t.meeting_link,
t.meeting_password, t.interview_location,
t.contact_phone, t.interviewer_name,
t.job_name, t.status, t.del_flag,t.is_read,
t.job_name, t.status, t.del_flag,t.is_read,t.meeting_type,
t.create_by, t.create_time, t.update_by, t.update_time, t.remark,
COALESCE(c.name, t.company_name) as company_name,
COALESCE(j.job_title, t.job_name) as job_title,