Commit 06920d7
fix(developer-hub): use exact/substring matching for multi-term search
The previous implementation used matchSorter for multi-term search which
caused fuzzy matching to dominate results with the most common term.
For multi-term search (comma/space separated), now uses:
- Exact ID match for numeric terms (e.g., '925' matches pyth_lazer_id 925)
- Case-insensitive substring match for text terms on symbol, name, description
Single-term search still uses matchSorter for fuzzy ranking.
Co-Authored-By: aditya@dourolabs.xyz <aditya@dourolabs.xyz>1 parent 160d6a5 commit 06920d7
File tree
1 file changed
+30
-8
lines changed- apps/developer-hub/src/components/PriceFeedIdsProTable
1 file changed
+30
-8
lines changedLines changed: 30 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
84 | 107 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
90 | 112 | | |
91 | 113 | | |
92 | | - | |
| 114 | + | |
93 | 115 | | |
94 | 116 | | |
95 | 117 | | |
| |||
0 commit comments