Improved termRelation error report
diff --git a/src/main/java/de/ids_mannheim/korap/KorapIndex.java b/src/main/java/de/ids_mannheim/korap/KorapIndex.java
index 4a01774..8b43b19 100644
--- a/src/main/java/de/ids_mannheim/korap/KorapIndex.java
+++ b/src/main/java/de/ids_mannheim/korap/KorapIndex.java
@@ -119,7 +119,7 @@
private ObjectMapper mapper = new ObjectMapper();
private String version;
- private int maxTermRelations = 33;
+ private int maxTermRelations = 50;
private static ByteBuffer bb = ByteBuffer.allocate(4),
bbOffset = ByteBuffer.allocate(8),
@@ -849,7 +849,8 @@
if (keySize > maxTermRelations) {
throw new Exception(
- "termRelations are limited to a " + maxTermRelations + " sets"
+ "termRelations are limited to " + maxTermRelations + " sets" +
+ " (requested were at least " + keySize + " sets)"
);
};