Skip to content
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

Prioritize tag search matches in the beginning of the result #1690

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

ishunko
Copy link
Contributor

@ishunko ishunko commented Nov 11, 2023

https://nanohub.org/support/ticket/437145
https://nanohub.org/support/ticket/437145

Updated code to get all tag search matches and prioritize the matches in the beginning of the string result. To achieve this, the code gets all matches from the DB and then parses them to find the matches in the beginning of the string to push these matches to the top of the returned JSON. This approach allows to keep using ORM in the cloud model and not modify the SQL as was suggested earlier in the ticket.

@dbenham dbenham merged commit 4f877b0 into hubzero:dev Jan 17, 2024
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.

3 participants