Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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