commit 169d39be7eb10da89a5d8d9bebcc2ab2bf432c0f
parent 8d3cdb64054333f937395b0056617754477dbf8f
Author: René Wagner <rwa@clttr.info>
Date: Mon, 9 May 2022 21:45:39 +0200
disable mmap-ing of whoosh index
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gus/lib/search.py b/gus/lib/search.py
@@ -13,7 +13,7 @@ from gus.lib.whoosh_extensions import UrlAnalyzer, GeminiFormatter, GeminiScorer
class Index:
def __init__(self, index_dir, should_run_destructive=False):
- index_storage = FileStorage(index_dir)
+ index_storage = FileStorage(index_dir, supports_mmap=False)
if should_run_destructive:
pathlib.Path(index_dir).mkdir(parents=True, exist_ok=True)