Commit fb75ff8
Support multi-keyword (AND) search in both search inputs (#150)
Previously, both the home-page JSON search and the in-page table
filter treated the entire input as a single substring: "video player"
only matched rows where those two words appeared adjacent in that
order. Multi-word queries the user might actually type — "python
ide", "video editor", "image viewer" — would miss obvious matches.
Whitespace-split the query into terms and require every term to be
present somewhere in the haystack. AND semantics, no order required.
Empty query still matches everything (terms.every of [] is vacuously
true, matching the previous q === '' branch).
The table-filter visible-count message already showed
"(X of N shown)", so no copy changes are needed; the count keeps
making sense.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7e32ae0 commit fb75ff8
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
99 | | - | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | | - | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
0 commit comments