commit | 9058cb5a4461f0f7d47523a7a62a7a6150c8c938 | [log] [tgz] |
---|---|---|
author | Eliza Margaretha <margaretha@ids-mannheim.de> | Wed Jan 22 11:09:40 2014 +0000 |
committer | Eliza Margaretha <margaretha@ids-mannheim.de> | Wed Jan 22 11:09:40 2014 +0000 |
tree | ab39088f87a7ba4a03b0232fa9499960157854c2 | |
parent | a2603faf3f1cd7351cfad445b2d1d595bba03132 [diff] |
Reduce constraints to forward secondspans
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/SegmentSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/SegmentSpans.java index 3880215..7373d15 100644 --- a/src/main/java/de/ids_mannheim/korap/query/spans/SegmentSpans.java +++ b/src/main/java/de/ids_mannheim/korap/query/spans/SegmentSpans.java
@@ -45,8 +45,7 @@ matchEndPosition = firstSpans.end(); return 0; } - else if (firstSpans.start() < secondSpans.start() || - firstSpans.end() < secondSpans.end()) + else if (firstSpans.end() < secondSpans.end()) return -1; return 1;