wrolpi/modules/docs/test
lrnselfreliance c973d2f40b
Doc section hints look up only the sections of the page's docs (#1087)
_fetch_section_hints matched the search against every doc section in the
library, joined each match to doc_section and doc, and only then kept the
requested FileGroups.  A common word matches thousands of sections, and each
join is a random read of a large section row, so a cold files or docs search
spent most of its time here, even when no result on the page was a doc.

The match is now limited to the rowids of the requested docs' sections, read
from covering indexes.  The results are the same.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 18:01:38 -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 Doc section hints look up only the sections of the page's docs (#1087) 2026-12-03 18:01:38 -07:00
test_models.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00