wrolpi/modules/docs/test
lrnselfreliance 45b52a698e
Search: drop stopwords from unquoted terms, as Postgres did (#1085)
Postgres' english websearch_to_tsquery dropped stopwords; FTS5 indexes them.
A stopword matches most of the library, so a search containing one read its
whole doclist (slow on a cold HDD) and only found files that happened to
contain it.  translate_websearch now drops Postgres' english stopword list
from unquoted terms; quoted phrases keep them.

A search with nothing left to search (stopwords or punctuation only) now
matches nothing in archive, video and doc search too, as files search, the
search estimates and Postgres already did, instead of listing everything.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 17:16:36 -07:00
..
__init__.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00
test_api.py Search: drop stopwords from unquoted terms, as Postgres did (#1085) 2026-12-03 17:16:36 -07:00
test_doc_modeler.py A refresh compare and the doc modeler read file_group through its indexes (#1083) 2026-12-02 15:12:06 -07:00
test_extractors.py API startup no longer imports pymupdf (#946) 2026-11-03 15:01:45 -07:00
test_lib.py Search results sort as the filter dialog says (#959) 2026-11-11 19:42:23 -07:00
test_models.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00