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

Bad error message when searching in fields that don't exist #295

Open
majsan opened this issue Feb 21, 2025 · 0 comments
Open

Bad error message when searching in fields that don't exist #295

majsan opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@majsan
Copy link
Member

majsan commented Feb 21, 2025

For example https://spraakbanken4.it.gu.se/karp/v7/query/saldo?q=equals|lemgram|"mor..nn.2"&from=0&size=25&highlight=true
gives 500 and body {"detail": "Internal server error"} because lemgram is not a field in Saldo. Either we should give back zero hits or a message that describes the error.

@majsan majsan added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant