From a6faad7380e6d47b07359297c36057cc9a9f592e Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Fri, 10 Nov 2023 11:39:21 -0800 Subject: [PATCH] fix: tantivy requires more memory for indexing in new version. --- crates/tabby-scheduler/src/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tabby-scheduler/src/index.rs b/crates/tabby-scheduler/src/index.rs index cf2403de8b3..85feba86c2b 100644 --- a/crates/tabby-scheduler/src/index.rs +++ b/crates/tabby-scheduler/src/index.rs @@ -22,7 +22,7 @@ pub fn index_repositories(_config: &Config) -> Result<()> { let index = Index::open_or_create(directory, code.schema)?; register_tokenizers(&index); - let mut writer = index.writer(10_000_000)?; + let mut writer = index.writer(150_000_000)?; writer.delete_all_documents()?; for file in SourceFile::all()? {