Search in sources :

Example 1 with ForceMergeDeletesResponse

use of com.yelp.nrtsearch.server.grpc.ForceMergeDeletesResponse in project nrtsearch by Yelp.

the class ForceMergeDeletesCommand method call.

@Override
public Integer call() throws Exception {
    LuceneServerClient client = baseCmd.getClient();
    try {
        ForceMergeDeletesResponse response = client.getBlockingStub().forceMergeDeletes(ForceMergeDeletesRequest.newBuilder().setIndexName(getIndexName()).setDoWait(getDoWait()).build());
        logger.info("Force merge deletes response: {}", response.getStatus());
    } finally {
        client.shutdown();
    }
    return 0;
}
Also used : LuceneServerClient(com.yelp.nrtsearch.server.grpc.LuceneServerClient) ForceMergeDeletesResponse(com.yelp.nrtsearch.server.grpc.ForceMergeDeletesResponse)

Aggregations

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