Search in sources :

Example 11 with DeleteRequestBuilder

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;
}
Also used : DeleteRequestBuilder(org.elasticsearch.action.delete.DeleteRequestBuilder)

Aggregations

DeleteRequestBuilder (org.elasticsearch.action.delete.DeleteRequestBuilder)11 DeleteResponse (org.elasticsearch.action.delete.DeleteResponse)4 Entity (org.dbflute.Entity)3 BulkItemResponse (org.elasticsearch.action.bulk.BulkItemResponse)3 BulkRequestBuilder (org.elasticsearch.action.bulk.BulkRequestBuilder)3 BulkResponse (org.elasticsearch.action.bulk.BulkResponse)3 IndexRequestBuilder (org.elasticsearch.action.index.IndexRequestBuilder)3 UpdateRequestBuilder (org.elasticsearch.action.update.UpdateRequestBuilder)3 ElasticsearchException (org.elasticsearch.ElasticsearchException)1 SearchResponse (org.elasticsearch.action.search.SearchResponse)1 SearchHit (org.elasticsearch.search.SearchHit)1 SearchHitField (org.elasticsearch.search.SearchHitField)1