fix: tantivy requires more memory for indexing in new version. (#753)

refactor-extract-code
Meng Zhang 2023-11-10 11:41:50 -08:00 committed by GitHub
parent b510f61aca
commit 27ed9c2cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()? {