Search in sources :

Example 1 with ForceMergeResponse

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;
}
Also used : LuceneServerClient(com.yelp.nrtsearch.server.grpc.LuceneServerClient) ForceMergeResponse(com.yelp.nrtsearch.server.grpc.ForceMergeResponse)

Aggregations

ForceMergeResponse (com.yelp.nrtsearch.server.grpc.ForceMergeResponse)1 LuceneServerClient (com.yelp.nrtsearch.server.grpc.LuceneServerClient)1