Test VC with large vector and large index

Change-Id: I5d5ae5a31620ae868c222e38301f8248dcbc085d
diff --git a/src/test/java/de/ids_mannheim/korap/collection/TestKrillCollectionIndex.java b/src/test/java/de/ids_mannheim/korap/collection/TestKrillCollectionIndex.java
index 7321e09..89009cc 100644
--- a/src/test/java/de/ids_mannheim/korap/collection/TestKrillCollectionIndex.java
+++ b/src/test/java/de/ids_mannheim/korap/collection/TestKrillCollectionIndex.java
@@ -1357,6 +1357,27 @@
         assertEquals("[[a]] d e", kr.getMatch(3).getSnippetBrackets());
     };
 
+	@Test
+    public void testKrillCollectionWithLargeVectorAndLargeIndex () throws IOException {
+        ki = new KrillIndex();
+        for (int i = 0; i < 6000; i++) {
+            FieldDocument fd = new FieldDocument();
+            fd.addString("UID", Integer.toString(i));
+            ki.addDoc(fd);
+            if (i == 4500)
+                ki.commit();
+        };
+
+        ki.commit();
+
+        String json = _getJSONString("collection_large_vector.jsonld");
+        KrillCollection kc = new KrillCollection(json);
+        kc.setIndex(ki);
+        
+        assertEquals("Documents", 5000, kc.numberOf("documents"));
+    };
+
+    
     
 
     private FieldDocument createDoc1 () {