Skip to content

Commit

Permalink
[opt](inverted index) Default support support_phrase
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzxl1993 committed Jul 17, 2024
1 parent 756b9c2 commit 7fadd36
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,16 @@ public Index(long indexId, String indexName, List<String> columns,
this.comment = comment;
if (indexType == IndexDef.IndexType.INVERTED) {
if (this.properties != null && !this.properties.isEmpty()) {
String key = InvertedIndexUtil.INVERTED_INDEX_PARSER_LOWERCASE_KEY;
if (!properties.containsKey(key)) {
this.properties.put(key, "true");
if (this.properties.containsKey(InvertedIndexUtil.INVERTED_INDEX_PARSER_KEY)) {
String lowerCaseKey = InvertedIndexUtil.INVERTED_INDEX_PARSER_LOWERCASE_KEY;
if (!properties.containsKey(lowerCaseKey)) {
this.properties.put(lowerCaseKey, "true");
}
String supportPhraseKey = InvertedIndexUtil
.INVERTED_INDEX_SUPPORT_PHRASE_KEY;
if (!properties.containsKey(supportPhraseKey)) {
this.properties.put(supportPhraseKey, "true");
}
}
}
}
Expand Down

0 comments on commit 7fadd36

Please sign in to comment.