KorAP / Krill

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

Skipped results in focus queries when being part of a sequence #78

Closed Akron closed 2 years ago

Akron commented 2 years ago

There seems to be a serious bug in the handling of focus - at least in our main instance. This may be a build error, as @kupietz says the bug wasn't there in the summer.

This query skips certain texts or matches:

Anführungszeichen focus(in [tt/p=NN] {[tt/l=setzen]})

for example

WUD17/G94/41145

So - the match is found, but seems to be skipped under certain circumstances.

Akron commented 2 years ago

As @margaretha pointed out, the problem seems to be related to annotations with the same positions.

The error occurs when comparing these two otherwise identical queries:

[tt/p=NN] focus(den Sand {[tt/l=setzen]})

and

Sand focus(den [tt/p=NN] {[tt/l=setzen]})

Akron commented 2 years ago

All tests pass now.