From 52c51e768c49ccf857629c0de365ab504eae0391 Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Thu, 27 Jan 2022 10:35:44 +0000 Subject: [PATCH] #312 git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32910 --- .../main/java/hu/user/mediacube/indexer/RESTController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/hu.user.mediacube.indexer/src/main/java/hu/user/mediacube/indexer/RESTController.java b/server/hu.user.mediacube.indexer/src/main/java/hu/user/mediacube/indexer/RESTController.java index 6336df14..836a227c 100644 --- a/server/hu.user.mediacube.indexer/src/main/java/hu/user/mediacube/indexer/RESTController.java +++ b/server/hu.user.mediacube.indexer/src/main/java/hu/user/mediacube/indexer/RESTController.java @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.RestController; import hu.user.mediacube.indexer.db.ArchivedMedia; import hu.user.mediacube.indexer.db.SearchResult; import hu.user.mediacube.indexer.lucene.LuceneIndexer; +import hu.user.mediacube.indexer.service.GreetingService; +import hu.user.mediacube.indexer.service.IndexerService; @RestController @RequestMapping("indexer") @@ -45,8 +47,8 @@ public class RESTController { } @GetMapping(path = "/search/{queryString}/{skipRecords}/{takeRecords}/{orderIndex}/{orderDirection}", produces = "application/json") - public SearchResult search(@PathVariable String queryString, @PathVariable int skipRecords, @PathVariable int takeRecords, - @PathVariable int orderIndex, @PathVariable int orderDirection) { + public SearchResult search(@PathVariable String queryString, @PathVariable int skipRecords, + @PathVariable int takeRecords, @PathVariable int orderIndex, @PathVariable int orderDirection) { return indexer.search(queryString, skipRecords, takeRecords, orderIndex, orderDirection); } -- 2.54.0