-
Notifications
You must be signed in to change notification settings - Fork 316
feat(developer-hub): add multi-feed search functionality to Lazer price feed IDs #3271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ce feed IDs Users can now search for multiple feeds simultaneously by entering comma or space-separated search terms. For example: - 'BTC ETH' shows feeds matching either BTC or ETH - 'BTC, ETH, SOL' shows feeds matching any of the three terms The search uses OR logic - a feed is shown if it matches ANY of the search terms. Co-Authored-By: aditya@dourolabs.xyz <aditya@dourolabs.xyz>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
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>
- Exact ID matches now appear first in search results - Other matches are sorted by ID for consistent ordering - Fixes issue where ID 925 was buried in results when searching 'sol, btc, 925' Co-Authored-By: aditya@dourolabs.xyz <aditya@dourolabs.xyz>
aditya520
approved these changes
Dec 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for searching multiple price feeds simultaneously in the Lazer price feed IDs table. Users can now enter comma or space-separated search terms to find multiple feeds at once.
Example usage:
BTC ETH- shows feeds matching either BTC or ETHBTC, ETH, SOL- shows feeds matching any of the three termssol, btc, 925- shows SOL feeds, BTC feeds, and the feed with ID 925 (with ID 925 appearing first)Rationale
This was requested in Slack by a user who wanted to search for multiple feeds at once on the Lazer price feed IDs page. This feature was previously implemented in the documentation repo (PR #900) and now needs to be ported to the pyth-crosschain repo where the developer-hub code now lives.
Updates since last revision
Fixed multi-term search to use exact/substring matching instead of fuzzy matchSorter. The original implementation used matchSorter for all terms, which caused fuzzy matching to dominate results with the most common term (e.g., "sol, btc, 925" only showed SOL results).
Added priority ordering for exact ID matches. When searching for numeric IDs (e.g.,
925), those exact matches now appear first in results, followed by other matches sorted by ID.Multi-term search behavior:
925) → exact ID match againstpyth_lazer_id(appears first in results)btc) → case-insensitive substring match on symbol, name, or descriptionpyth_lazer_idSingle-term search still uses matchSorter for fuzzy ranking.
How has this been tested?
Verified in browser that searching
sol, btc, 925now shows:ESLint and TypeScript type checking pass.
Human Review Checklist
sol, btc, 925shows ID 925 first)925finds only the feed with pyth_lazer_id 925)btcfinds BTC-related feeds)sol, btcshows both SOL and BTC feeds)Link to Devin run: https://app.devin.ai/sessions/aaafcb5191834d438ac7b2db192e324c
Requested by: aditya@dourolabs.xyz