mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-08-20 17:53:20 +00:00
Rewires parse_user_query() to parse via wc.parse()/tantivy_emit() against the shared FieldRegistry instead of the string-based translate_query() pipeline, so diagnostics map to typed SearchQueryError subclasses (InvalidDateQuery/InvalidNumberQuery/MultipleSearchQueryErrors) and every bad field is reported, not just the first. Marks three pre-existing tests xfail (2 in test_query.py, 1 in test_api_search.py) for confirmed whoosh-compat grammar gaps found while verifying this rewrite: unquoted multi-word date keywords (e.g. `added:previous month`) and RFC3339 T/Z datetime range bounds no longer parse. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>