Skip to content

Conversation

pelson
Copy link
Contributor

@pelson pelson commented Sep 17, 2025

This fixes a bug seen in production where the ordering of the results for "numpy" meant that numpy wasn't on the first page, and therefore it was being injected (without summary) as the first result. To address this, I have implemented the desired ordering semantics of the search. In doing so, I re-wrote the search SQL building functionality to make it more modular and easier to extend in the future (looking at you classifier search, and label/link filter)

Furthermore, this fixed fuzzy pattern wildcard handling, for example numpy* now correctly matches only prefix patterns (numpy, numpy-image) and no longer incorrectly matches suffix patterns (xnumpy). The tests for this are quite extensive.

@pelson pelson merged commit b523c48 into main Sep 17, 2025
2 checks passed
@pelson pelson deleted the feature/refined-search branch September 17, 2025 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant