use of com.yelp.nrtsearch.server.grpc.LuceneServerClient in project nrtsearch by Yelp.
the class DeleteDocumentsCommand method call.
@Override
public Integer call() throws Exception {
LuceneServerClient client = baseCmd.getClient();
try {
Path filePath = Paths.get(getFileName());
client.delete(filePath);
} finally {
client.shutdown();
}
return 0;
}
use of com.yelp.nrtsearch.server.grpc.LuceneServerClient 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;
}
Aggregations