mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-03 21:29:59 -05:00
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> |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| api.py | ||
| conftest.py | ||
| extractors.py | ||
| lib.py | ||
| models.py | ||
| schema.py | ||