diff --git a/core/app/searcher/src/main/java/io/openk9/searcher/resource/SearchResource.java b/core/app/searcher/src/main/java/io/openk9/searcher/resource/SearchResource.java index f402d5c58..632e8545f 100644 --- a/core/app/searcher/src/main/java/io/openk9/searcher/resource/SearchResource.java +++ b/core/app/searcher/src/main/java/io/openk9/searcher/resource/SearchResource.java @@ -110,8 +110,6 @@ public Uni searchQuery(SearchRequest searchRequest) { } - private static final Logger logger = Logger.getLogger(SearchResource.class); - @POST @Path("/suggestions") @Produces(MediaType.APPLICATION_JSON) @@ -125,12 +123,6 @@ public Uni suggestions(SearchRequest searchRequest) { .map(internalSearcherMapper::toSuggestionsResponse); } - @Inject - SearcherMapper searcherMapper; - @Inject - InternalSearcherMapper internalSearcherMapper; - @Inject - RestHighLevelClient restHighLevelClient; @POST @Path("/search") @@ -556,13 +548,6 @@ private Resp parseEntity( } } - @GrpcClient("searcher") - Searcher searcherClient; - - @Inject - @Claim(standard = Claims.raw_token) - String rawToken; - private Response toSearchResponse(SearchResponse searchResponse) { printShardFailures(searchResponse); @@ -625,6 +610,20 @@ private Response toSearchResponse(SearchResponse searchResponse) { return new Response(result, totalHits.value); } + private static final Logger logger = Logger.getLogger(SearchResource.class); + @GrpcClient("searcher") + Searcher searcherClient; + + @Inject + @Claim(standard = Claims.raw_token) + String rawToken; + @Inject + SearcherMapper searcherMapper; + @Inject + InternalSearcherMapper internalSearcherMapper; + @Inject + RestHighLevelClient restHighLevelClient; + @Context HttpServerRequest request; @@ -648,4 +647,5 @@ private void printShardFailures(SearchResponse searchResponse) { } } } + }