use of org.elasticsearch.index.rankeval.RankEvalRequest in project spring-data-elasticsearch by spring-projects.
the class RequestConverters method rankEval.
public static Request rankEval(RankEvalRequest rankEvalRequest) {
Request request = new Request(HttpMethod.GET.name(), endpoint(rankEvalRequest.indices(), Strings.EMPTY_ARRAY, "_rank_eval"));
Params params = new Params(request);
params.withIndicesOptions(rankEvalRequest.indicesOptions());
request.setEntity(createEntity(rankEvalRequest.getRankEvalSpec(), REQUEST_BODY_CONTENT_TYPE));
return request;
}
Aggregations