Skip to content

Commit 951471f

Browse files
committed
Debugging
1 parent 15db601 commit 951471f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/main/scala/ai/lum/odinson/lucene/search/OdinRepetitionQuery.scala

+4-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ class OdinRepetitionSpans(
199199
atFirstInCurrentDoc = false
200200
return matches(startIndex).start
201201
}
202-
if (getNextStretch()) {
202+
// added to address lum-ai/odinson#394
203+
if (startIndex == -1) {
204+
NO_MORE_POSITIONS
205+
} else if (getNextStretch()) {
203206
matches(startIndex).start
204207
} else {
205208
matches = emptyMatchArray

0 commit comments

Comments
 (0)