This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new b4332c77f1b branch-3.0: [opt](inverted index) create non analyzer when 
parser is none for inverted index #54666 (#54795)
b4332c77f1b is described below

commit b4332c77f1bcf7edf957b82d88f3c717a91cf314
Author: Jack <[email protected]>
AuthorDate: Mon Aug 18 09:33:45 2025 +0800

    branch-3.0: [opt](inverted index) create non analyzer when parser is none 
for inverted index #54666 (#54795)
    
    cherry pick from #54666
---
 be/src/clucene                                          | 2 +-
 be/src/olap/rowset/segment_v2/inverted_index_writer.cpp | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/be/src/clucene b/be/src/clucene
index 8d8f92ef8dd..6046125ce7f 160000
--- a/be/src/clucene
+++ b/be/src/clucene
@@ -1 +1 @@
-Subproject commit 8d8f92ef8ddd0e50b6fc76f8f6572abaef1b5213
+Subproject commit 6046125ce7f9bb8631427ff8ee1ce93e07edb421
diff --git a/be/src/olap/rowset/segment_v2/inverted_index_writer.cpp 
b/be/src/olap/rowset/segment_v2/inverted_index_writer.cpp
index 827d8127d21..cf1fc8b4620 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_writer.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_writer.cpp
@@ -243,7 +243,10 @@ public:
         RETURN_IF_ERROR(open_index_directory());
         _char_string_reader =
                 
DORIS_TRY(create_char_string_reader(_inverted_index_ctx->char_filter_map));
-        _analyzer = DORIS_TRY(create_analyzer(_inverted_index_ctx));
+        if (_parser_type != InvertedIndexParserType::PARSER_UNKNOWN &&
+            _parser_type != InvertedIndexParserType::PARSER_NONE) {
+            _analyzer = DORIS_TRY(create_analyzer(_inverted_index_ctx));
+        }
         _index_writer = create_index_writer();
         _doc = std::make_unique<lucene::document::Document>();
         if (_single_field) {


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

Reply via email to