Added getMeta() to full server
Change-Id: Ic58acac1e34f27928d673aa2d4ff3287c06311c0
diff --git a/full/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java b/full/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java
index 328a3d4..857dfbf 100644
--- a/full/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java
+++ b/full/src/main/java/de/ids_mannheim/korap/web/controller/SearchController.java
@@ -1005,6 +1005,28 @@
}
+ /*
+ * Returns the meta data fields of a certain document
+ */
+ // This is currently identical to LiteService#getMeta(),
+ // but may need auth code to work following policies
+ @GET
+ @Path("/corpus/{corpusId}/{docId}/{textId}")
+ public Response getMeta (
+ @PathParam("corpusId") String corpusId,
+ @PathParam("docId") String docId,
+ @PathParam("textId") String textId
+ // @QueryParam("fields") Set<String> fields
+ ) throws KustvaktException {
+
+ String textSigle = searchKrill.getTextSigle(corpusId, docId, textId);
+
+ String results = searchKrill.getFields(textSigle);
+
+ return Response.ok(results).build();
+ }
+
+
// todo:?!
@POST
@Path("match/{id}")