Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,10 @@ private static Map<String, Object> initInfo(EntityInfo entityInfo, GlobalConfig.
info.put(BaseEsConstants.TYPE, indexParam.getFieldType());
}

// 是否text类型或keyword_text类型
// 是否text类型或keyword_text类型或completion类型
boolean containsTextType = FieldType.TEXT.getType().equals(indexParam.getFieldType()) ||
FieldType.KEYWORD_TEXT.getType().equals(indexParam.getFieldType());
FieldType.KEYWORD_TEXT.getType().equals(indexParam.getFieldType()) ||
FieldType.COMPLETION.getType().equals(indexParam.getFieldType());
if (containsTextType) {
// 设置分词器
Optional.ofNullable(indexParam.getAnalyzer())
Expand Down