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

kxiao pushed a commit to branch branch-2.0-var
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0-var by this push:
     new 64e125938fa [fix](invert index) add the reader buffer as a parameter 
(#27489)
64e125938fa is described below

commit 64e125938faa10c91595822cff695fd0faa60299
Author: zzzxl <33418555+zzzxl1...@users.noreply.github.com>
AuthorDate: Fri Nov 24 17:46:07 2023 +0800

    [fix](invert index) add the reader buffer as a parameter (#27489)
---
 be/src/clucene                                         | 2 +-
 be/src/olap/rowset/segment_v2/inverted_index_cache.cpp | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/be/src/clucene b/be/src/clucene
index 70c1a692bbb..6f8a21ffe15 160000
--- a/be/src/clucene
+++ b/be/src/clucene
@@ -1 +1 @@
-Subproject commit 70c1a692bbb1277f107ff2ddedda41b3a223c632
+Subproject commit 6f8a21ffe15bd78a1cd3e685067ee5c9ed071827
diff --git a/be/src/olap/rowset/segment_v2/inverted_index_cache.cpp 
b/be/src/olap/rowset/segment_v2/inverted_index_cache.cpp
index f3c68984ebb..7a59e2d7cdf 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_cache.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_cache.cpp
@@ -47,8 +47,9 @@ IndexSearcherPtr 
InvertedIndexSearcherCache::build_index_searcher(const io::File
             new DorisCompoundReader(DorisCompoundDirectory::getDirectory(fs, 
index_dir.c_str()),
                                     file_name.c_str(), 
config::inverted_index_read_buffer_size);
     auto closeDirectory = true;
-    auto index_searcher =
-            std::make_shared<lucene::search::IndexSearcher>(directory, 
closeDirectory);
+    auto reader = lucene::index::IndexReader::open(
+            directory, config::inverted_index_read_buffer_size, 
closeDirectory);
+    auto index_searcher = 
std::make_shared<lucene::search::IndexSearcher>(reader);
     // NOTE: need to cl_refcount-- here, so that directory will be deleted when
     // index_searcher is destroyed
     _CLDECDELETE(directory)


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

Reply via email to