Search over folded names: one Go matcher for the page (wasm) and the service, and a sharded static index #77
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Search today is a stand-in twice over: the front page filters the list in the page with JavaScript substring matching (#76), and
GET /people?q=matches case-insensitively. Neither handles the names of twenty billion people in many scripts, and neither scales past the list in the page.What scales is the index, and the reason to use wasm is one matcher in both places.
namespackage: the search form of a name (Unicode normalisation, marks stripped, case folded, letters like ø æ ß ł unified, Han characters as words of their own, Arabic alef forms unified, punctuation dropped) and the match (every word of the folded query is a prefix of a word of the folded name). Pinned by fixtures in Latin, Cyrillic, Greek, Arabic and Chinese.GET /people?q=and the front page's search (via the existing wasm) both use it.names/<prefix>.json, fetched on demand, so a sandbox of millions searches without a server; the folded form is the key a database (#7, #11) indexes later.Towards #10.
Released in v0.15.0: https://git.bytestone.uk/hum3/life-weaver/releases/tag/v0.15.0