[opt](inverted index) set support_phrase default true if parser is set (#38028)
## Proposed changes https://github.com/apache/doris/pull/37949 <!--Describe your changes.-->
This commit is contained in:
@ -73,9 +73,16 @@ public class Index implements Writable {
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user