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
feat: improve search matching with multi-word support and relevance ranking
Enhance the search functionality to support flexible multi-word queries
and better match results:
Backend changes:
- Add spec titles to /plots/filter API response for richer search context
- Update _collect_all_images to include title field in image dicts
Frontend changes:
- Implement multi-word search: all query words must match but can appear
anywhere in the value (not necessarily consecutive)
- Add relevance scoring to prioritize exact matches, prefix matches, and
substring matches over multi-word matches
- Add title field to PlotImage interface for future search enhancements
Examples of improved matching:
- "scatter basic" now matches: scatter-basic, basic-scatter, scatter-basic-3d
- "bar horiz" now matches: bar-horizontal, bar-grouped-horizontal
- Results ranked by relevance: exact > starts-with > contains > multi-word
Fixes the issue where searching for two short words only worked with
exact consecutive matches.
0 commit comments