~bigbes/sr-ht-spec: 54fac8dd

docs: resolve bilingual search with per-line routing

Per-document language routing, the option this document suggested, was
implemented and measured as insufficient: a dominantly Russian spec
quoting English verbatim matches attachments but not attachment. A single
analyzer does not break the other language, it silently stops stemming it,
which is why the flaw survives casual testing.

Per-line routing into ru and en title/body fields, queried across all
four, finds both halves. Dual-writing was rejected despite also fixing
stemming, because it biases ranking toward mixed documents by summing two
field scores. The threshold is 35 percent Cyrillic rather than 50, since
Russian technical prose here routinely runs a third Latin.

Also records that filters must be exact-match — warren filtered on an
analyzed field, which at our scale means a filter for one space can return
another's documents, and a project is defined as a space filter — and
corrects post-receive's unit of freshness to a space at a revision.

bigbes <bigbes@gmail.com> — 2026-07-22 11:24:05 UTC

Commit 54fac8ddcf7a3232e2335300db465a6244a1b4beview raw patch

Parent(s): 36b9e183

1 changed file(s)

FileStatus+
docs/DESIGN.md M +61 -9