mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-07-02 02:04:19 +00:00
3cc78fe994
When open_or_rebuild_index is called and the index directory does not exist, return a fresh in-memory Tantivy index instead of creating the directory as a side effect. This prevents workspace contamination during test runs where INDEX_DIR has not been redirected to a temp directory. In production the data directory is always created during setup, so disk- based indexes continue to work normally. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>