use of org.opensearch.action.delete.DeleteResponse in project fess by codelibs.
the class EsAbstractBehavior method delegateDelete.
@Override
protected int delegateDelete(final Entity entity, final DeleteOption<? extends ConditionBean> option) {
final EsAbstractEntity esEntity = (EsAbstractEntity) entity;
final DeleteRequestBuilder builder = createDeleteRequest(esEntity);
final DeleteResponse response = builder.execute().actionGet(deleteTimeout);
return response.getResult() == Result.DELETED ? 1 : 0;
}
use of org.opensearch.action.delete.DeleteResponse in project fess by codelibs.
the class EsAbstractBehavior method delegateDelete.
@Override
protected int delegateDelete(final Entity entity, final DeleteOption<? extends ConditionBean> option) {
final EsAbstractEntity esEntity = (EsAbstractEntity) entity;
final DeleteRequestBuilder builder = createDeleteRequest(esEntity);
final DeleteResponse response = builder.execute().actionGet(deleteTimeout);
return response.getResult() == Result.DELETED ? 1 : 0;
}
use of org.opensearch.action.delete.DeleteResponse in project fess by codelibs.
the class EsAbstractBehavior method delegateDelete.
@Override
protected int delegateDelete(final Entity entity, final DeleteOption<? extends ConditionBean> option) {
final EsAbstractEntity esEntity = (EsAbstractEntity) entity;
final DeleteRequestBuilder builder = createDeleteRequest(esEntity);
final DeleteResponse response = builder.execute().actionGet(deleteTimeout);
return response.getResult() == Result.DELETED ? 1 : 0;
}
Aggregations