Commit 90e6efe
Fix curated resources search (#737)
* Fix curated resources search: raise result limit and enable prefix matching
The search was capped at 30 results (now 500), hiding most matches.
Also, search terms required exact whole-word matches — e.g. "registra"
wouldn't find "registration". Now the last word in a query uses prefix
matching while earlier words still require full-word matches, keeping
results relevant without noise.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Require all search terms to match (AND logic)
Previously each query word matched independently (OR), so "pre-registration"
returned more results than "registration" because "pre" matched extra items.
Now every query word must appear in an item for it to be included. Multi-word
phrases and prefix matching still contribute to ranking/weight.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Treat hyphens as optional so pre-registration = preregistration
Content normalization produces both forms (split and joined) for
hyphenated words. Query normalization strips hyphens so both
"pre-registration" and "preregistration" search identically.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Replace search list with isotope card filtering
Instead of loading index.json and rendering a separate results list,
the search input now filters the existing resource cards in-place via
isotope. Supports AND logic (all words must match), prefix matching,
and works alongside the category filter buttons. Shows a count of
matching resources.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Strip hyphens from card text so preregistration matches pre-registration
Card text contains original hyphens, so searching "preregistration"
wouldn't find cards with "pre-registration". Now hyphens are stripped
from both the query (split to words) and card text (before matching).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 719a8d7 commit 90e6efe
3 files changed
Lines changed: 83 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
16 | 26 | | |
17 | 27 | | |
18 | 28 | | |
| |||
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
44 | | - | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
48 | 70 | | |
49 | 71 | | |
50 | 72 | | |
| |||
82 | 104 | | |
83 | 105 | | |
84 | 106 | | |
85 | | - | |
| 107 | + | |
86 | 108 | | |
87 | 109 | | |
88 | 110 | | |
| |||
107 | 129 | | |
108 | 130 | | |
109 | 131 | | |
| 132 | + | |
110 | 133 | | |
111 | 134 | | |
112 | | - | |
| 135 | + | |
113 | 136 | | |
114 | 137 | | |
115 | 138 | | |
116 | 139 | | |
117 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
118 | 149 | | |
119 | 150 | | |
120 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
651 | 654 | | |
652 | 655 | | |
653 | 656 | | |
654 | 657 | | |
655 | 658 | | |
656 | 659 | | |
657 | 660 | | |
658 | | - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
659 | 697 | | |
660 | 698 | | |
661 | 699 | | |
662 | 700 | | |
663 | | - | |
664 | | - | |
| 701 | + | |
| 702 | + | |
665 | 703 | | |
666 | 704 | | |
667 | 705 | | |
| |||
0 commit comments