use of org.elasticsearch.action.delete.DeleteRequestBuilder in project fess by codelibs.
the class EsAbstractBehavior method createDeleteRequest.
protected DeleteRequestBuilder createDeleteRequest(final EsAbstractEntity esEntity) {
final DeleteRequestBuilder builder = client.prepareDelete(asEsIndex(), asEsIndexType(), esEntity.asDocMeta().id());
final RequestOptionCall<DeleteRequestBuilder> deleteOption = esEntity.asDocMeta().deleteOption();
if (deleteOption != null) {
deleteOption.callback(builder);
}
return builder;
}
Aggregations