Skip to content

Commit

Permalink
issue #1077: sf
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Sep 3, 2024
1 parent c6a618f commit 263abb0
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ public Uni<String> searchQuery(SearchRequest searchRequest) {

}

private static final Logger logger = Logger.getLogger(SearchResource.class);

@POST
@Path("/suggestions")
@Produces(MediaType.APPLICATION_JSON)
Expand All @@ -125,12 +123,6 @@ public Uni<SuggestionsResponse> suggestions(SearchRequest searchRequest) {
.map(internalSearcherMapper::toSuggestionsResponse);

}
@Inject
SearcherMapper searcherMapper;
@Inject
InternalSearcherMapper internalSearcherMapper;
@Inject
RestHighLevelClient restHighLevelClient;

@POST
@Path("/search")
Expand Down Expand Up @@ -556,13 +548,6 @@ private <Resp> Resp parseEntity(
}
}

@GrpcClient("searcher")
Searcher searcherClient;

@Inject
@Claim(standard = Claims.raw_token)
String rawToken;

private Response toSearchResponse(SearchResponse searchResponse) {
printShardFailures(searchResponse);

Expand Down Expand Up @@ -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;

Expand All @@ -648,4 +647,5 @@ private void printShardFailures(SearchResponse searchResponse) {
}
}
}

}

0 comments on commit 263abb0

Please sign in to comment.