Merge "Updated to recent Krill API"
diff --git a/src/main/java/de/ids_mannheim/korap/web/service/LightService.java b/src/main/java/de/ids_mannheim/korap/web/service/LightService.java
index f064d33..99b4372 100644
--- a/src/main/java/de/ids_mannheim/korap/web/service/LightService.java
+++ b/src/main/java/de/ids_mannheim/korap/web/service/LightService.java
@@ -128,9 +128,13 @@
// meta.addEntry("itemsPerResource", 1);
serializer.addMeta(meta);
+ if (cq != null)
+ serializer.setCollection(cq);
+
String query = processor.process(serializer.toJSON());
jlog.info("the serialized query {}", query);
+ // This may not work with the the KoralQuery
if (eng.equals(KustvaktConfiguration.BACKENDS.NEO4J)) {
MultivaluedMap map = new MultivaluedMapImpl();
map.add("q", query);