Package org.elasticsearch.client.action.get

Examples of org.elasticsearch.client.action.get.GetRequestBuilder


    @Override public DeleteByQueryRequestBuilder prepareDeleteByQuery(String... indices) {
        return new DeleteByQueryRequestBuilder(this).setIndices(indices);
    }

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


  // @param _id: the document primary key
  // @param sFields: the list of fields to return (can be null - will just return null if doc doesn't exist)
  // @returns: A map containing the requested fields (null if empty)
 
  public Map<String, GetField> getDocument(String _id, String... sFields) {
    GetRequestBuilder grb = _elasticClient.prepareGet(_sIndexName, _sIndexType, _id);
    if (null != sFields) {
      grb.setFields(sFields);
    }
    GetResponse gr = grb.execute().actionGet();
    Map<String, GetField> fieldsMap = gr.getFields();
    if (null != fieldsMap) {
      if (fieldsMap.isEmpty()) {
        fieldsMap = null;
      }
View Full Code Here

    return new DeleteByQueryRequestBuilder(_superClient.prepareDeleteByQuery(arg0));
  }

  //@Override
  public org.elasticsearch.client.action.get.GetRequestBuilder prepareGet() {
    return new GetRequestBuilder(_superClient.prepareGet());
  }
View Full Code Here

    return new GetRequestBuilder(_superClient.prepareGet());
  }

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

    return new DeleteByQueryRequestBuilder(_superClient.prepareDeleteByQuery(arg0));
  }

  //@Override
  public org.elasticsearch.client.action.get.GetRequestBuilder prepareGet() {
    return new GetRequestBuilder(_superClient.prepareGet());
  }
View Full Code Here

    return new GetRequestBuilder(_superClient.prepareGet());
  }

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

TOP

Related Classes of org.elasticsearch.client.action.get.GetRequestBuilder

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.