KorAP / Koral

:pencil: Translation of query languages to serialized KoralQuery protocol
BSD 2-Clause "Simplified" License
10 stars 4 forks source link

Failed C2 distance query serialization #40

Open margaretha opened 7 years ago

margaretha commented 7 years ago

Failed so /+w1 nicht http://korap.ids-mannheim.de/kalamar?q=so+%2F%2Bw1+nicht&collection-name=&collection=&ql=cosmas2&cutoff=1

"so" /+w1 nicht http://korap.ids-mannheim.de/kalamar?q=%22so%22+%2F%2Bw1+nicht&collection-name=&collection=&ql=cosmas2&cutoff=1

Works: "so" /+w1 "nicht" http://korap.ids-mannheim.de/instance/wiki?q=%22so%22+%2F%2Bw5+%22nicht%22&collection-name=&collection=&ql=cosmas2&cutoff=1

so /+w1 "nicht" http://korap.ids-mannheim.de/kalamar?q=so+%2F%2Bw1+%22nicht%22&collection-name=&collection=&ql=cosmas2&cutoff=1

Akron commented 7 years ago

I wouldn't consider this a bug. The error message is just not very helpful. Cosmas II returns a better error message: "Der 'nicht'-Operator braucht zwei Suchbegriffe." - Koral may be able to throw that. nicht without operands is undefined, see C2 query intro.