commit | 482e6bbae57f58a0613f17034d75e1285c660d80 | [log] [tgz] |
---|---|---|
author | Michael Hanl <hanl@ids-mannheim.de> | Sat Jun 27 13:03:56 2015 +0200 |
committer | Michael Hanl <hanl@ids-mannheim.de> | Sat Jun 27 13:09:13 2015 +0200 |
tree | 3b28673d236f31fa4b6f2471ebda13cc359263e7 | |
parent | 461379c3d7877a73a33b9eef1d5da868faca0992 [diff] | |
parent | 02b332180c82a64cd2354907399f44b02d9b9bd8 [diff] |
fields set
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 6e54744..29599a3 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
@@ -123,7 +123,8 @@ MetaQueryBuilder meta = QueryBuilderUtil .defaultMetaBuilder(pageIndex, pageInteger, pageLength, ctx, cutoff); - meta.addEntry("fields", fields); + if (fields != null && !fields.isEmpty()) + meta.addEntry("fields", fields); serializer.setMeta(meta); if (cq != null) serializer.setCollection(cq);