Fixed case sensitive tests in collection suite
Change-Id: I534f76238d082f924f0270880bdaf747fd0f4a55
diff --git a/src/main/java/de/ids_mannheim/korap/KrillCollectionNew.java b/src/main/java/de/ids_mannheim/korap/KrillCollectionNew.java
index f94b407..3409ff5 100644
--- a/src/main/java/de/ids_mannheim/korap/KrillCollectionNew.java
+++ b/src/main/java/de/ids_mannheim/korap/KrillCollectionNew.java
@@ -27,7 +27,7 @@
.getLogger(KrillCollection.class);
// This advices the java compiler to ignore all loggings
- public static final boolean DEBUG = true;
+ public static final boolean DEBUG = false;
/**
@@ -97,13 +97,17 @@
};
*/
-
+ /**
+ * This will respect deleted documents.
+ */
public FixedBitSet bits (AtomicReaderContext atomic) throws IOException {
AtomicReader r = atomic.reader();
FixedBitSet bitset = new FixedBitSet(r.maxDoc());
DocIdSet docids = this.getDocIdSet(atomic, (Bits) r.getLiveDocs());
+
if (docids == null)
return null;
+
bitset.or(docids.iterator());
return bitset;
};
@@ -144,6 +148,7 @@
);
};
+
/**
* Search for the number of occurrences of different types,
* e.g. <i>documents</i>, <i>sentences</i> etc. in the virtual
diff --git a/src/main/java/de/ids_mannheim/korap/collection/BooleanGroupFilter.java b/src/main/java/de/ids_mannheim/korap/collection/BooleanGroupFilter.java
index 7efcc60..60c4ebb 100644
--- a/src/main/java/de/ids_mannheim/korap/collection/BooleanGroupFilter.java
+++ b/src/main/java/de/ids_mannheim/korap/collection/BooleanGroupFilter.java
@@ -33,7 +33,7 @@
private final static Logger log = LoggerFactory.getLogger(KrillCollection.class);
// This advices the java compiler to ignore all loggings
- public static final boolean DEBUG = true;
+ public static final boolean DEBUG = false;
// Init operands list
private final List<GroupFilterOperand> operands = new ArrayList<>(3);
diff --git a/src/main/java/de/ids_mannheim/korap/index/TextAnalyzer.java b/src/main/java/de/ids_mannheim/korap/index/TextAnalyzer.java
index bd5181b..bca39b5 100644
--- a/src/main/java/de/ids_mannheim/korap/index/TextAnalyzer.java
+++ b/src/main/java/de/ids_mannheim/korap/index/TextAnalyzer.java
@@ -11,7 +11,7 @@
public class TextAnalyzer extends Analyzer {
@Override
- protected TokenStreamComponents createComponents(final String fieldName, final Reader reader) {
+ protected TokenStreamComponents createComponents (final String fieldName, final Reader reader) {
final Tokenizer source = new StandardTokenizer(reader);
TokenStream sink = new LowerCaseFilter(source);
return new TokenStreamComponents(source, sink);
diff --git a/src/main/resources/log4j.properties b/src/main/resources/log4j.properties
index eacf929..5fed33b 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
@@ -21,7 +21,7 @@
# Collections:
# log4j.logger.de.ids_mannheim.korap.collection.Filter = TRACE, stdout
-log4j.logger.de.ids_mannheim.korap.KrillCollection = TRACE, stdout
+# log4j.logger.de.ids_mannheim.korap.KrillCollection = TRACE, stdout
# Responses:
# log4j.logger.de.ids_mannheim.korap.server.Node = TRACE, stdout