fts-stop-words-filtered-before-query

IN premise

FTS queries filter a `_STOP_WORDS` frozenset before querying FTS5; if all terms are stop words, the search falls back to terms longer than 1 character.

Summary

The full-text search system removes common words like "the" or "and" before running queries against the FTS5 index. If a user's entire search consists of these common words, the system has a fallback that tries any terms longer than one character instead of returning no results. This means very short or generic searches may behave differently than expected, and the stop word list directly controls which terms are silently dropped from queries.

Details

Sourceentries/2026/05/08/reasons_lib-api.md