airborne12 commented on code in PR #20116:
URL: https://github.com/apache/doris/pull/20116#discussion_r1208013498


##########
be/src/olap/rowset/segment_v2/inverted_index_writer.cpp:
##########
@@ -171,6 +171,12 @@ class InvertedIndexColumnWriterImpl : public 
InvertedIndexColumnWriter {
             auto chinese_analyzer = _CLNEW 
lucene::analysis::LanguageBasedAnalyzer();
             chinese_analyzer->setLanguage(L"chinese");
             chinese_analyzer->initDict(config::inverted_index_dict_path);
+            auto mode = 
get_parser_mode_string_from_properties(_index_meta->properties());
+            if (mode == INVERTED_INDEX_PARSER_COARSE_GRANULARITY) {
+                
chinese_analyzer->setMode(lucene::analysis::AnalyzerMode::Default);

Review Comment:
   we want to use All mode as default 



-- 
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