Package org.elasticsearch.client.action.delete

Examples of org.elasticsearch.client.action.delete.DeleteRequestBuilder


    @Override public IndexRequestBuilder prepareIndex(String index, String type, @Nullable String id) {
        return prepareIndex().setIndex(index).setType(type).setId(id);
    }

    @Override public DeleteRequestBuilder prepareDelete() {
        return new DeleteRequestBuilder(this, null);
    }
View Full Code Here


  }
  public boolean removeDocument(String _id, String sParentId) {
    if (null != _multiIndex) {
      throw new RuntimeException("removeDocument not supported on multi-index manager");
    }
    DeleteRequestBuilder drb = _elasticClient.prepareDelete(_sIndexName, _sIndexType, _id);
    if (null != sParentId) {
      drb.setRouting(sParentId);
    }
    drb.setConsistencyLevel(WriteConsistencyLevel.ONE);
    DeleteResponse dr = drb.execute().actionGet();
    return DeleteResponseUtils.isFound(dr);
   
  }//TESTED (including children)
View Full Code Here

//    return _superClient.prepareCount(arg0);
//  }

  //@Override
  public org.elasticsearch.client.action.delete.DeleteRequestBuilder prepareDelete() {
    return new DeleteRequestBuilder(_superClient.prepareDelete());
  }
View Full Code Here

  }

  //@Override
  public org.elasticsearch.client.action.delete.DeleteRequestBuilder prepareDelete(String arg0, String arg1,
      String arg2) {
    return new DeleteRequestBuilder(_superClient.prepareDelete(arg0, arg1, arg2));
  }
View Full Code Here

//    return _superClient.prepareCount(arg0);
//  }

  //@Override
  public org.elasticsearch.client.action.delete.DeleteRequestBuilder prepareDelete() {
    return new DeleteRequestBuilder(_superClient.prepareDelete());
  }
View Full Code Here

  }

  //@Override
  public org.elasticsearch.client.action.delete.DeleteRequestBuilder prepareDelete(String arg0, String arg1,
      String arg2) {
    return new DeleteRequestBuilder(_superClient.prepareDelete(arg0, arg1, arg2));
  }
View Full Code Here

TOP

Related Classes of org.elasticsearch.client.action.delete.DeleteRequestBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.