Create failing test for startswith-bug
Change-Id: I6ee1f9815d37717acc95e925420beb4391a80c38
diff --git a/src/main/java/de/ids_mannheim/korap/KrillIndex.java b/src/main/java/de/ids_mannheim/korap/KrillIndex.java
index 44528f0..e4535c0 100644
--- a/src/main/java/de/ids_mannheim/korap/KrillIndex.java
+++ b/src/main/java/de/ids_mannheim/korap/KrillIndex.java
@@ -118,7 +118,7 @@
// TODO: Use configuration instead.
// Last line of defense against DOS
private int autoCommit = 500;
- private String version = "unknown";
+ private String version = "Unknown";
private String name = "Unknown";
// Temp:
diff --git a/src/main/java/de/ids_mannheim/korap/query/spans/ElementSpans.java b/src/main/java/de/ids_mannheim/korap/query/spans/ElementSpans.java
index 8227bda..ba056d1 100644
--- a/src/main/java/de/ids_mannheim/korap/query/spans/ElementSpans.java
+++ b/src/main/java/de/ids_mannheim/korap/query/spans/ElementSpans.java
@@ -77,12 +77,17 @@
super(spanElementQuery, context, acceptDocs, termContexts);
termSpans = (TermSpans) this.firstSpans;
hasMoreSpans = true;
- // termSpans.next();
+ if (DEBUG)
+ log.trace("Create ElementSpan");
};
@Override
public boolean next () throws IOException {
+
+ if (DEBUG)
+ log.trace("Next element span for element");
+
if (!hasMoreSpans || !(hasMoreSpans = termSpans.next()))
return false;
@@ -94,8 +99,6 @@
private boolean advance () throws IOException {
-
-
this.matchStartPosition = termSpans.start();
this.matchDocNumber = termSpans.doc();
isPayloadLoaded = false;
diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties
index fd0328d..78bf62e 100644
--- a/src/main/resources/log4j.properties
+++ b/src/main/resources/log4j.properties
@@ -1,4 +1,4 @@
-# log4j.rootLogger = ERROR, stdout
+log4j.rootLogger = ERROR, stdout
# Queries:
# log4j.logger.de.ids_mannheim.korap.query.SpanNextQuery = TRACE, stdout