use of com.yelp.nrtsearch.server.grpc.ForceMergeResponse in project nrtsearch by Yelp.
the class ForceMergeCommand method call.
@Override
public Integer call() throws Exception {
LuceneServerClient client = baseCmd.getClient();
try {
ForceMergeResponse response = client.getBlockingStub().forceMerge(ForceMergeRequest.newBuilder().setIndexName(getIndexName()).setMaxNumSegments(getMaxNumSegments()).setDoWait(getDoWait()).build());
logger.info("Force merge response: {}", response.getStatus());
} finally {
client.shutdown();
}
return 0;
}
Aggregations