commit | bb68a4bb0d4d161f00d2407a8778058dbcf1c84e | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Jun 22 01:31:32 2015 +0200 |
committer | Akron <nils@diewald-online.de> | Mon Jun 22 01:32:27 2015 +0200 |
tree | 752011ca628d4b4167063dce6c2c0fad7448979e | |
parent | 6daf22b3f14d89a32206d810bc02816db8432dbb [diff] |
Include collection writer Change-Id: I8d2b32fb224259390fa441f4778380a636435109
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 35e1c6b..ea53545 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);