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

Fixed bug around non anime/manga search #437

Merged
merged 2 commits into from
Oct 7, 2023
Merged

Conversation

pushrbx
Copy link
Collaborator

@pushrbx pushrbx commented Sep 17, 2023

Error message screenshot:
error message

The app has a special logic / optimization for short search terms. When the search term is shorter than 4 characters in length, the app changes the options sent to the Typesense API to improve search results.

In case of all non anime/manga endpoints which allow searching through the search index there is a bug when you try to search with short search terms (shorter than 4 in length) the api returns a 500 error. This is caused by the before mentioned logic being only specific to the anime/manga endpoints.

This PR addresses this issue by adding a default value for the "sort_by" option being sent to Typesense API.

@pushrbx pushrbx requested a review from a team as a code owner September 17, 2023 20:35
@irfan-dahir irfan-dahir merged commit 28ff8a2 into master Oct 7, 2023
@pushrbx pushrbx deleted the hotfix/search2 branch January 31, 2024 19:53
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.

2 participants