Adopted statistics query parameter in lite

Change-Id: Ieade2f2bce4acafc58188cafc8102c67ad33ca5d
diff --git a/lite/Changes b/lite/Changes
index 5cba03b..d539fc5 100644
--- a/lite/Changes
+++ b/lite/Changes
@@ -1,10 +1,11 @@
 version 0.60.1
 12/06/2018
-	- removed kustvakt_encryption (margaretha)
-	- updated kustvakt core version (margaretha)
-	
+    - removed kustvakt_encryption (margaretha)
+    - updated kustvakt core version (margaretha)
+    - adopted statistics query parameter from full (ndiewald)
+  
 version 0.60
-23/03/2018	
+23/03/2018  
     - updated field type:date in the metadata test (margaretha)
     - removed loading application context via BeanFactory (margaretha)
     - fixed missing kustvakt-lite.conf (margaretha)
@@ -12,16 +13,16 @@
 
 version 0.59.9 
 01/02/2018
-	- renamed light to lite (margaretha)
-	- added Changes file (margaretha)
-	- updated library versions and java environment (margaretha)
-	- added metadata test (diewald)
-	
+    - renamed light to lite (margaretha)
+    - added Changes file (margaretha)
+    - updated library versions and java environment (margaretha)
+    - added metadata test (diewald)
+  
 version 0.59.8 
 17/01/2018 
-	- restructured Kustvakt and created /lite project
-	- removed version from service paths (margaretha)
-	- updated query serialization tests (margaretha)
-	- added statistic service test (margaretha)
-	- updated KustvaktResponseHandler (margaretha)
-	- removed FastJerseyLight and simplified Jersey test configuration (margaretha)	
\ No newline at end of file
+    - restructured Kustvakt and created /lite project
+    - removed version from service paths (margaretha)
+    - updated query serialization tests (margaretha)
+    - added statistic service test (margaretha)
+    - updated KustvaktResponseHandler (margaretha)
+    - removed FastJerseyLight and simplified Jersey test configuration (margaretha)
\ No newline at end of file
diff --git a/lite/src/main/java/de/ids_mannheim/korap/web/service/lite/LiteService.java b/lite/src/main/java/de/ids_mannheim/korap/web/service/lite/LiteService.java
index 7eb5c2c..90673e1 100644
--- a/lite/src/main/java/de/ids_mannheim/korap/web/service/lite/LiteService.java
+++ b/lite/src/main/java/de/ids_mannheim/korap/web/service/lite/LiteService.java
@@ -298,7 +298,7 @@
     @GET
     @Path("statistics")
     public Response getStatistics (
-            @QueryParam("collectionQuery") String collectionQuery) {
+            @QueryParam("corpusQuery") String collectionQuery) {
 
         KoralCollectionQueryBuilder builder = new KoralCollectionQueryBuilder();
         builder.with(collectionQuery);
diff --git a/lite/src/test/java/de/ids_mannheim/korap/web/service/LiteServiceTest.java b/lite/src/test/java/de/ids_mannheim/korap/web/service/LiteServiceTest.java
index 618bb04..bc3064c 100644
--- a/lite/src/test/java/de/ids_mannheim/korap/web/service/LiteServiceTest.java
+++ b/lite/src/test/java/de/ids_mannheim/korap/web/service/LiteServiceTest.java
@@ -65,7 +65,7 @@
     public void testStatistics () throws KustvaktException{
         ClientResponse response = resource()
                 .path("statistics")
-                .queryParam("collectionQuery", "textType=Autobiographie & corpusSigle=GOE")
+                .queryParam("corpusQuery", "textType=Autobiographie & corpusSigle=GOE")
                 .method("GET", ClientResponse.class);
         assertEquals(ClientResponse.Status.OK.getStatusCode(),
                 response.getStatus());