You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 76d2932
Browse filesBrowse the repository at this point in the historyBrowse files
Search reads entry bodies (Notes and Evidence) too (#92)
The build writes search-bodies.json (each listed entry's body as plain
text, URLs and Markdown syntax dropped; 182 KB gzipped). The catalog
fetches it on the first search, never on page load, and rebuilds its
index with a fourth field weighted below names, tags and summaries, so
current rankings hold. Tested with a body-only word; checked in a
browser (a word found only in one entry's Notes returns it; no fetch
before searching).
No snippet on the card yet.
Closes#92
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpkeXQPaUhxjgqdqnk6BrJ
Copy file name to clipboardExpand all lines: ROADMAP.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,10 @@ missing entry, so freshness and accuracy come before volume.
21
21
22
22
## Planned
23
23
24
-
- Full-text search over entry bodies (Notes and Evidence), not only names, tags and summaries.
25
24
26
25
## Done
27
26
27
+
- Full-text search over entry bodies (Notes and Evidence): `search-bodies.json`, fetched on the first search, ranked below name, tag and summary hits.
28
28
- A changelog page: [docs/review-ledger.md](docs/review-ledger.md) on the site as guide/changelog/, and the README "Recent" block written from it by `npm run counts`.
29
29
- Site search across names, tags and summaries, with licence, format and category filters.
30
30
- The guides in docs/ rendered as site pages, and an engine filter that hides projects,
conste={name: "Kit",tags: ["ui"],license: "CC0",category: "2d",summary: "A small kit."};
2443
+
constbody=bodySearchText("## Notes\n\n- Ships a **zorbulator** sheet, see [the page](https://x.test/zorb).\n\n## Evidence\n\n- Page (2026-09-01): \"CC0\"");
2444
+
lacks("body text: URLs are dropped",body,"https://");
2445
+
has("body text: link labels and words kept",body,"the page");
2446
+
eq("body: a word only in the Notes finds the entry once bodies are loaded",scoreFields(searchFields(e,body),queryTests("zorbulator"))>0,true);
2447
+
eq("body: without the bodies it does not",scoreFields(searchFields(e),queryTests("zorbulator")),0);
2448
+
eq("body: a body hit ranks below a summary hit",scoreFields(searchFields(e,body),queryTests("zorbulator"))<scoreFields(searchFields(e,body),queryTests("small")),true);
2449
+
eq("body: a name hit still ranks first",scoreFields(searchFields(e,body),queryTests("kit")),3);
0 commit comments