wrolpi/modules/archive
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
..
test Search: drop stopwords from unquoted terms, as Postgres did (#1085) 2026-12-03 17:16:36 -07:00
__init__.py A download records the sha256 of its files in the wrolpi section (#904) 2026-10-30 19:34:49 -06:00
api.py The Any Tag filter works on the Videos, Archives and Docs searches (#958) 2026-11-11 19:21:06 -07:00
conftest.py test: do not leave videos_destination as an invalid template (#656) 2026-08-11 18:51:06 -06:00
errors.py Adding toggle to Channel page to stop downloading comments for certain channels. 2025-03-01 18:23:29 -07:00
lib.py Search: drop stopwords from unquoted terms, as Postgres did (#1085) 2026-12-03 17:16:36 -07:00
models.py Apply the offset in a SingleFile saved date, and repair misread Archive dates (#862) 2026-10-23 14:34:29 -06:00
schema.py The Any Tag filter works on the Videos, Archives and Docs searches (#958) 2026-11-11 19:21:06 -07:00