岗位搜索功能问题修复
This commit is contained in:
@@ -117,6 +117,7 @@ public class ESJobDocument
|
||||
private String industry;
|
||||
|
||||
@ApiModelProperty("岗位分类")
|
||||
@IndexField(fieldType = FieldType.TEXT, analyzer = Analyzer.IK_SMART, searchAnalyzer = Analyzer.IK_SMART)
|
||||
private String jobCategory;
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
@@ -519,7 +519,7 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
}
|
||||
if (!StringUtil.isEmptyOrNull(cateStr)) {
|
||||
if (!first) sub.or();
|
||||
sub.eq(ESJobDocument::getJobCategory, cateStr);
|
||||
sub.match(ESJobDocument::getJobCategory, cateStr, 5.0f);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user