Skip to content

Commit 57d76c0

Browse files
committed
[opt](inverted index) Default support support_phrase
1 parent 756b9c2 commit 57d76c0

File tree

1 file changed

+10
-3
lines changed
  • fe/fe-core/src/main/java/org/apache/doris/catalog

1 file changed

+10
-3
lines changed

fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,16 @@ public Index(long indexId, String indexName, List<String> columns,
7474
this.comment = comment;
7575
if (indexType == IndexDef.IndexType.INVERTED) {
7676
if (this.properties != null && !this.properties.isEmpty()) {
77-
String key = InvertedIndexUtil.INVERTED_INDEX_PARSER_LOWERCASE_KEY;
78-
if (!properties.containsKey(key)) {
79-
this.properties.put(key, "true");
77+
if (this.properties.containsKey(INVERTED_INDEX_PARSER_KEY)) {
78+
String lowerCaseKey = InvertedIndexUtil.INVERTED_INDEX_PARSER_LOWERCASE_KEY;
79+
if (!properties.containsKey(lowerCaseKey)) {
80+
this.properties.put(lowerCaseKey, "true");
81+
}
82+
String supportPhraseKey = InvertedIndexUtil
83+
.INVERTED_INDEX_SUPPORT_PHRASE_KEY;
84+
if (!properties.containsKey(supportPhraseKey)) {
85+
this.properties.put(supportPhraseKey, "true");
86+
}
8087
}
8188
}
8289
}

0 commit comments

Comments
 (0)