xiaokang commented on code in PR #37949:
URL: https://github.com/apache/doris/pull/37949#discussion_r1680319719


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/Index.java:
##########
@@ -74,9 +74,14 @@ 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");
+                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)) {

Review Comment:
   check parser existence first



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to