mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-26 12:43:19 +00:00
whoosh-compat's grammar already accepts the closed multi-word date keyword vocabulary (previous month, this year, etc.) unquoted after a date field, making _quote_date_keyword_phrases redundant. Like its sibling rewrite removed in an earlier commit, it was not quote-aware and could insert quotes mid-phrase inside an unrelated quoted string (e.g. title:"see added:previous month notes"), corrupting the parse. Deleting it removes that hazard entirely. Docs are adjusted to scope the quoted-or-unquoted equivalence to the documented keyword list; other date expressions the grammar accepts (relative offsets, absolute dates) still require quoting. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>