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

Parser error when string contains "-" #280

Open
majsan opened this issue Jun 20, 2024 · 1 comment
Open

Parser error when string contains "-" #280

majsan opened this issue Jun 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@majsan
Copy link
Member

majsan commented Jun 20, 2024

For example, searching for 1500-tal with citation marks work:
https://spraakbanken4.it.gu.se/karp/v7/query/saldom?q=equals|baseform|%221500-tal%22&size=1000

Without gives a parser error:
https://spraakbanken4.it.gu.se/karp/v7/query/saldom?q=equals|baseform|1500-tal&size=1000

Starting with "-" works (but something, somewhere makes the - go away in the search):
https://spraakbanken4.it.gu.se/karp/v7/query/saldom?q=equals|baseform|-tal&size=1000

@nick8325
Copy link
Contributor

Also equals|baseform|tal-1500 doesn't crash. Is it maybe trying to parse 1500 as a number?

@majsan majsan added the bug Something isn't working label Oct 8, 2024
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

2 participants