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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to