mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-06-07 22:29:45 +00:00
7d1af2e215
- Remove duplicated list comprehension in search sort branches - Simplify WriteBatch.__exit__ by removing redundant else/pass block - Fix rebuild() to swap index once before loop instead of per-document - Add error recovery in rebuild() to restore old index on failure - Remove redundant re-import of register_tokenizers in rebuild() - Use tuple unpacking in autocomplete hit iteration - Collect tag names in single pass for autocomplete text sources - Use lazy % formatting in logger.debug instead of f-string - Remove redundant score list variable in normalization - Fix stale "NLTK stopword filtering" comment (NLTK was removed) - Remove obvious inline comments that restate the code - Align index_optimize task message with management command wording Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>