spraakbanken / karp-backend

Karp backend
MIT License
3 stars 2 forks source link

Parser error when string contains "-" #280

Open majsan opened 4 months ago

majsan commented 4 months ago

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 commented 4 months ago

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