KorAP / Krill

:mag: A Corpus Data Retrieval Index using Lucene for Look-Ups
BSD 2-Clause "Simplified" License
16 stars 3 forks source link

Problem with or-Queries in sentence boundaries #87

Closed Akron closed 1 year ago

Akron commented 2 years ago

Sometimes query handling fails, when in COSMAS-II sentence bound query an or-query is on the right side.

Example failing currently (2022-08-09):

halbrunden /+s0 (Geburtstag OR Geburtstags) with pubDate eq 2006-03

(Reported by Rainer Perkuhn)

Akron commented 2 years ago

The generated query is spanElementDistance({129: tokens:s:halbrunden}, {129: spanOr([tokens:s:Geburtstag, tokens:s:Geburtstags])}, [(base/s:s[0:0], ordered, notExcluded)])