类 RestHighLevelClient

java.lang.Object
org.easysearch.client.RestHighLevelClient
所有已实现的接口:
java.io.Closeable, java.lang.AutoCloseable

public class RestHighLevelClient
extends java.lang.Object
implements java.io.Closeable
High level REST client that wraps an instance of the low level RestClient and allows to build requests and read responses. The RestClient instance is internally built based on the provided RestClientBuilder and it gets closed automatically when closing the RestHighLevelClient instance that wraps it.

In case an already existing instance of a low-level REST client needs to be provided, this class can be subclassed and the RestHighLevelClient(RestClient, CheckedConsumer, List) constructor can be used.

This class can also be sub-classed to expose additional client methods that make use of endpoints added to Easysearch through plugins, or to add support for custom response sections, again added to Easysearch through plugins.

The majority of the methods in this class come in two flavors, a blocking and an asynchronous version (e.g. search(SearchRequest, RequestOptions) and searchAsync(SearchRequest, RequestOptions, ActionListener), where the later takes an implementation of an ActionListener as an argument that needs to implement methods that handle successful responses and failure scenarios. Most of the blocking calls can throw an IOException or an unchecked EasysearchException in the following cases:

  • an IOException is usually thrown in case of failing to parse the REST response in the high-level REST client, the request times out or similar cases where there is no response coming back from the Easysearch server
  • an EasysearchException is usually thrown in case where the server returns a 4xx or 5xx error code. The high-level client then tries to parse the response body error details into a generic EasysearchException and suppresses the original ResponseException
  • 构造器概要

    构造器
    限定符 构造器 说明
      RestHighLevelClient​(org.easysearch.client.RestClientBuilder restClientBuilder)
    Creates a RestHighLevelClient given the low level RestClientBuilder that allows to build the RestClient to be used to perform requests.
    protected RestHighLevelClient​(org.easysearch.client.RestClientBuilder restClientBuilder, java.util.List<org.easysearch.common.xcontent.NamedXContentRegistry.Entry> namedXContentEntries)
    Creates a RestHighLevelClient given the low level RestClientBuilder that allows to build the RestClient to be used to perform requests and parsers for custom response sections added to Easysearch through plugins.
    protected RestHighLevelClient​(org.easysearch.client.RestClient restClient, org.easysearch.common.CheckedConsumer<org.easysearch.client.RestClient,​java.io.IOException> doClose, java.util.List<org.easysearch.common.xcontent.NamedXContentRegistry.Entry> namedXContentEntries)
    Creates a RestHighLevelClient given the low level RestClient that it should use to perform requests and a list of entries that allow to parse custom response sections added to Easysearch through plugins.
  • 方法概要

    修饰符和类型 方法 说明
    org.easysearch.action.bulk.BulkResponse bulk​(org.easysearch.action.bulk.BulkRequest bulkRequest, org.easysearch.client.RequestOptions options)
    Executes a bulk request using the Bulk API.
    org.easysearch.client.Cancellable bulkAsync​(org.easysearch.action.bulk.BulkRequest bulkRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.bulk.BulkResponse> listener)
    Asynchronously executes a bulk request using the Bulk API.
    org.easysearch.action.search.ClearScrollResponse clearScroll​(org.easysearch.action.search.ClearScrollRequest clearScrollRequest, org.easysearch.client.RequestOptions options)
    Clears one or more scroll ids using the Clear Scroll API.
    org.easysearch.client.Cancellable clearScrollAsync​(org.easysearch.action.search.ClearScrollRequest clearScrollRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.ClearScrollResponse> listener)
    Asynchronously clears one or more scroll ids using the Clear Scroll API.
    void close()  
    ClusterClient cluster()
    Provides a ClusterClient which can be used to access the Cluster API.
    protected static boolean convertExistsResponse​(org.easysearch.client.Response response)  
    CountResponse count​(CountRequest countRequest, org.easysearch.client.RequestOptions options)
    Executes a count request using the Count API.
    org.easysearch.client.Cancellable countAsync​(CountRequest countRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<CountResponse> listener)
    Asynchronously executes a count request using the Count API.
    org.easysearch.action.delete.DeleteResponse delete​(org.easysearch.action.delete.DeleteRequest deleteRequest, org.easysearch.client.RequestOptions options)
    Deletes a document by id using the Delete API.
    org.easysearch.client.Cancellable deleteAsync​(org.easysearch.action.delete.DeleteRequest deleteRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.delete.DeleteResponse> listener)
    Asynchronously deletes a document by id using the Delete API.
    org.easysearch.index.reindex.BulkByScrollResponse deleteByQuery​(org.easysearch.index.reindex.DeleteByQueryRequest deleteByQueryRequest, org.easysearch.client.RequestOptions options)
    Executes a delete by query request.
    org.easysearch.client.Cancellable deleteByQueryAsync​(org.easysearch.index.reindex.DeleteByQueryRequest deleteByQueryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.reindex.BulkByScrollResponse> listener)
    Asynchronously executes a delete by query request.
    org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse deleteByQueryRethrottle​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options)
    Executes a delete by query rethrottle request.
    org.easysearch.client.Cancellable deleteByQueryRethrottleAsync​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse> listener)
    Asynchronously execute an delete by query rethrottle request.
    org.easysearch.action.support.master.AcknowledgedResponse deleteScript​(org.easysearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest request, org.easysearch.client.RequestOptions options)
    Delete stored script by id.
    org.easysearch.client.Cancellable deleteScriptAsync​(org.easysearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously delete stored script by id.
    boolean exists​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options)
    Checks for the existence of a document.
    org.easysearch.client.Cancellable existsAsync​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<java.lang.Boolean> listener)
    Asynchronously checks for the existence of a document.
    boolean existsSource​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options)
    boolean existsSource​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options)
    Checks for the existence of a document with a "_source" field.
    org.easysearch.client.Cancellable existsSourceAsync​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<java.lang.Boolean> listener)
    org.easysearch.client.Cancellable existsSourceAsync​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<java.lang.Boolean> listener)
    Asynchronously checks for the existence of a document with a "_source" field.
    org.easysearch.action.explain.ExplainResponse explain​(org.easysearch.action.explain.ExplainRequest explainRequest, org.easysearch.client.RequestOptions options)
    Executes a request using the Explain API.
    org.easysearch.client.Cancellable explainAsync​(org.easysearch.action.explain.ExplainRequest explainRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.explain.ExplainResponse> listener)
    Asynchronously executes a request using the Explain API.
    org.easysearch.action.fieldcaps.FieldCapabilitiesResponse fieldCaps​(org.easysearch.action.fieldcaps.FieldCapabilitiesRequest fieldCapabilitiesRequest, org.easysearch.client.RequestOptions options)
    Executes a request using the Field Capabilities API.
    org.easysearch.client.Cancellable fieldCapsAsync​(org.easysearch.action.fieldcaps.FieldCapabilitiesRequest fieldCapabilitiesRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.fieldcaps.FieldCapabilitiesResponse> listener)
    Asynchronously executes a request using the Field Capabilities API.
    org.easysearch.action.get.GetResponse get​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options)
    Retrieves a document by id using the Get API.
    org.easysearch.client.Cancellable getAsync​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.get.GetResponse> listener)
    Asynchronously retrieves a document by id using the Get API.
    org.easysearch.client.RestClient getLowLevelClient()
    Returns the low-level client that the current high-level client instance is using to perform requests
    org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptResponse getScript​(org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptRequest request, org.easysearch.client.RequestOptions options)
    Get stored script by id.
    org.easysearch.client.Cancellable getScriptAsync​(org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptResponse> listener)
    Asynchronously get stored script by id.
    GetSourceResponse getSource​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options)
    Retrieves the source field only of a document using GetSource API.
    org.easysearch.client.Cancellable getSourceAsync​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<GetSourceResponse> listener)
    Asynchronously retrieves the source field only of a document using GetSource API.
    org.easysearch.action.index.IndexResponse index​(org.easysearch.action.index.IndexRequest indexRequest, org.easysearch.client.RequestOptions options)
    Index a document using the Index API.
    org.easysearch.client.Cancellable indexAsync​(org.easysearch.action.index.IndexRequest indexRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.index.IndexResponse> listener)
    Asynchronously index a document using the Index API.
    IndicesClient indices()
    Provides an IndicesClient which can be used to access the Indices API.
    MainResponse info​(org.easysearch.client.RequestOptions options)
    Get the cluster info otherwise provided when sending an HTTP request to '/'
    IngestClient ingest()
    Provides a IngestClient which can be used to access the Ingest API.
    org.easysearch.action.get.MultiGetResponse mget​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options)
    Retrieves multiple documents by id using the Multi Get API.
    org.easysearch.client.Cancellable mgetAsync​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.get.MultiGetResponse> listener)
    Asynchronously retrieves multiple documents by id using the Multi Get API.
    org.easysearch.action.search.MultiSearchResponse msearch​(org.easysearch.action.search.MultiSearchRequest multiSearchRequest, org.easysearch.client.RequestOptions options)
    Executes a multi search using the msearch API.
    org.easysearch.client.Cancellable msearchAsync​(org.easysearch.action.search.MultiSearchRequest searchRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.MultiSearchResponse> listener)
    Asynchronously executes a multi search using the msearch API.
    org.easysearch.script.mustache.MultiSearchTemplateResponse msearchTemplate​(org.easysearch.script.mustache.MultiSearchTemplateRequest multiSearchTemplateRequest, org.easysearch.client.RequestOptions options)
    Executes a request using the Multi Search Template API.
    org.easysearch.client.Cancellable msearchTemplateAsync​(org.easysearch.script.mustache.MultiSearchTemplateRequest multiSearchTemplateRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.script.mustache.MultiSearchTemplateResponse> listener)
    Asynchronously executes a request using the Multi Search Template API See Multi Search Template API on elastic.co.
    MultiTermVectorsResponse mtermvectors​(MultiTermVectorsRequest request, org.easysearch.client.RequestOptions options)
    Calls the Multi Term Vectors API See Multi Term Vectors API on elastic.co
    org.easysearch.client.Cancellable mtermvectorsAsync​(MultiTermVectorsRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<MultiTermVectorsResponse> listener)
    Asynchronously calls the Multi Term Vectors API See Multi Term Vectors API on elastic.co
    org.easysearch.action.get.MultiGetResponse multiGet​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options)
    已过时。
    org.easysearch.client.Cancellable multiGetAsync​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.get.MultiGetResponse> listener)
    org.easysearch.action.search.MultiSearchResponse multiSearch​(org.easysearch.action.search.MultiSearchRequest multiSearchRequest, org.easysearch.client.RequestOptions options)
    org.easysearch.client.Cancellable multiSearchAsync​(org.easysearch.action.search.MultiSearchRequest searchRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.MultiSearchResponse> listener)
    protected <Resp> Resp parseEntity​(org.apache.http.HttpEntity entity, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser)  
    protected org.easysearch.EasysearchStatusException parseResponseException​(org.easysearch.client.ResponseException responseException)
    Converts a ResponseException obtained from the low level REST client into an EasysearchException.
    protected <Req extends org.easysearch.action.ActionRequest,​ Resp>
    Resp
    performRequest​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.client.Response,​Resp,​java.io.IOException> responseConverter, java.util.Set<java.lang.Integer> ignores)
    已过时。
    If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.
    protected <Req extends org.easysearch.action.ActionRequest,​ Resp>
    Resp
    performRequestAndParseEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, java.util.Set<java.lang.Integer> ignores)
    已过时。
    If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.
    protected <Req extends Validatable,​ Resp>
    java.util.Optional<Resp>
    performRequestAndParseOptionalEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser)
    Defines a helper method for requests that can 404 and in which case will return an empty Optional otherwise tries to parse the response body
    protected <Req extends org.easysearch.action.ActionRequest,​ Resp>
    org.easysearch.client.Cancellable
    performRequestAsync​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.client.Response,​Resp,​java.io.IOException> responseConverter, org.easysearch.action.ActionListener<Resp> listener, java.util.Set<java.lang.Integer> ignores)
    已过时。
    If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.
    protected <Req extends org.easysearch.action.ActionRequest,​ Resp>
    org.easysearch.client.Cancellable
    performRequestAsyncAndParseEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, org.easysearch.action.ActionListener<Resp> listener, java.util.Set<java.lang.Integer> ignores)
    已过时。
    If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions.
    protected <Req extends Validatable,​ Resp>
    org.easysearch.client.Cancellable
    performRequestAsyncAndParseOptionalEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, org.easysearch.action.ActionListener<java.util.Optional<Resp>> listener)
    Asynchronous request which returns empty Optionals in the case of 404s or parses entity into an Optional
    boolean ping​(org.easysearch.client.RequestOptions options)
    Pings the remote Easysearch cluster and returns true if the ping succeeded, false otherwise
    org.easysearch.action.support.master.AcknowledgedResponse putScript​(org.easysearch.action.admin.cluster.storedscripts.PutStoredScriptRequest putStoredScriptRequest, org.easysearch.client.RequestOptions options)
    Puts an stored script using the Scripting API.
    org.easysearch.client.Cancellable putScriptAsync​(org.easysearch.action.admin.cluster.storedscripts.PutStoredScriptRequest putStoredScriptRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
    Asynchronously puts an stored script using the Scripting API.
    org.easysearch.index.rankeval.RankEvalResponse rankEval​(org.easysearch.index.rankeval.RankEvalRequest rankEvalRequest, org.easysearch.client.RequestOptions options)
    Executes a request using the Ranking Evaluation API.
    org.easysearch.client.Cancellable rankEvalAsync​(org.easysearch.index.rankeval.RankEvalRequest rankEvalRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.rankeval.RankEvalResponse> listener)
    Asynchronously executes a request using the Ranking Evaluation API.
    org.easysearch.index.reindex.BulkByScrollResponse reindex​(org.easysearch.index.reindex.ReindexRequest reindexRequest, org.easysearch.client.RequestOptions options)
    Executes a reindex request.
    org.easysearch.client.Cancellable reindexAsync​(org.easysearch.index.reindex.ReindexRequest reindexRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.reindex.BulkByScrollResponse> listener)
    Asynchronously executes a reindex request.
    org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse reindexRethrottle​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options)
    Executes a reindex rethrottling request.
    org.easysearch.client.Cancellable reindexRethrottleAsync​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse> listener)
    Executes a reindex rethrottling request.
    org.easysearch.action.search.SearchResponse scroll​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options)
    Executes a search using the Search Scroll API.
    org.easysearch.client.Cancellable scrollAsync​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.SearchResponse> listener)
    Asynchronously executes a search using the Search Scroll API.
    org.easysearch.action.search.SearchResponse search​(org.easysearch.action.search.SearchRequest searchRequest, org.easysearch.client.RequestOptions options)
    Executes a search request using the Search API.
    org.easysearch.client.Cancellable searchAsync​(org.easysearch.action.search.SearchRequest searchRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.SearchResponse> listener)
    Asynchronously executes a search using the Search API.
    org.easysearch.action.search.SearchResponse searchScroll​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options)
    org.easysearch.client.Cancellable searchScrollAsync​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.SearchResponse> listener)
    org.easysearch.script.mustache.SearchTemplateResponse searchTemplate​(org.easysearch.script.mustache.SearchTemplateRequest searchTemplateRequest, org.easysearch.client.RequestOptions options)
    Executes a request using the Search Template API.
    org.easysearch.client.Cancellable searchTemplateAsync​(org.easysearch.script.mustache.SearchTemplateRequest searchTemplateRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.script.mustache.SearchTemplateResponse> listener)
    Asynchronously executes a request using the Search Template API.
    SecurityClient security()
    Provide Security APIs.
    SnapshotClient snapshot()
    Provides a SnapshotClient which can be used to access the Snapshot API.
    TaskSubmissionResponse submitDeleteByQueryTask​(org.easysearch.index.reindex.DeleteByQueryRequest deleteByQueryRequest, org.easysearch.client.RequestOptions options)
    Submits a delete by query task See Delete By Query API on elastic.co
    TaskSubmissionResponse submitReindexTask​(org.easysearch.index.reindex.ReindexRequest reindexRequest, org.easysearch.client.RequestOptions options)
    Submits a reindex task.
    TaskSubmissionResponse submitUpdateByQueryTask​(org.easysearch.index.reindex.UpdateByQueryRequest updateByQueryRequest, org.easysearch.client.RequestOptions options)
    Submits a update by query task.
    TasksClient tasks()
    Provides a TasksClient which can be used to access the Tasks API.
    TermVectorsResponse termvectors​(TermVectorsRequest request, org.easysearch.client.RequestOptions options)
    Calls the Term Vectors API See Term Vectors API on elastic.co
    org.easysearch.client.Cancellable termvectorsAsync​(TermVectorsRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<TermVectorsResponse> listener)
    Asynchronously calls the Term Vectors API See Term Vectors API on elastic.co
    org.easysearch.action.update.UpdateResponse update​(org.easysearch.action.update.UpdateRequest updateRequest, org.easysearch.client.RequestOptions options)
    Updates a document using the Update API.
    org.easysearch.client.Cancellable updateAsync​(org.easysearch.action.update.UpdateRequest updateRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.update.UpdateResponse> listener)
    Asynchronously updates a document using the Update API.
    org.easysearch.index.reindex.BulkByScrollResponse updateByQuery​(org.easysearch.index.reindex.UpdateByQueryRequest updateByQueryRequest, org.easysearch.client.RequestOptions options)
    Executes a update by query request.
    org.easysearch.client.Cancellable updateByQueryAsync​(org.easysearch.index.reindex.UpdateByQueryRequest updateByQueryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.reindex.BulkByScrollResponse> listener)
    Asynchronously executes an update by query request.
    org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse updateByQueryRethrottle​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options)
    Executes a update by query rethrottle request.
    org.easysearch.client.Cancellable updateByQueryRethrottleAsync​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse> listener)
    Asynchronously execute an update by query rethrottle request.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • RestHighLevelClient

      public RestHighLevelClient​(org.easysearch.client.RestClientBuilder restClientBuilder)
      Creates a RestHighLevelClient given the low level RestClientBuilder that allows to build the RestClient to be used to perform requests.
    • RestHighLevelClient

      protected RestHighLevelClient​(org.easysearch.client.RestClientBuilder restClientBuilder, java.util.List<org.easysearch.common.xcontent.NamedXContentRegistry.Entry> namedXContentEntries)
      Creates a RestHighLevelClient given the low level RestClientBuilder that allows to build the RestClient to be used to perform requests and parsers for custom response sections added to Easysearch through plugins.
    • RestHighLevelClient

      protected RestHighLevelClient​(org.easysearch.client.RestClient restClient, org.easysearch.common.CheckedConsumer<org.easysearch.client.RestClient,​java.io.IOException> doClose, java.util.List<org.easysearch.common.xcontent.NamedXContentRegistry.Entry> namedXContentEntries)
      Creates a RestHighLevelClient given the low level RestClient that it should use to perform requests and a list of entries that allow to parse custom response sections added to Easysearch through plugins. This constructor can be called by subclasses in case an externally created low-level REST client needs to be provided. The consumer argument allows to control what needs to be done when the close() method is called. Also subclasses can provide parsers for custom response sections added to Easysearch through plugins.
  • 方法详细资料

    • getLowLevelClient

      public final org.easysearch.client.RestClient getLowLevelClient()
      Returns the low-level client that the current high-level client instance is using to perform requests
    • close

      public final void close() throws java.io.IOException
      指定者:
      close 在接口中 java.lang.AutoCloseable
      指定者:
      close 在接口中 java.io.Closeable
      抛出:
      java.io.IOException
    • indices

      public final IndicesClient indices()
      Provides an IndicesClient which can be used to access the Indices API. See Indices API on elastic.co
    • cluster

      public final ClusterClient cluster()
      Provides a ClusterClient which can be used to access the Cluster API. See Cluster API on elastic.co
    • ingest

      public final IngestClient ingest()
      Provides a IngestClient which can be used to access the Ingest API. See Ingest API on elastic.co
    • snapshot

      public final SnapshotClient snapshot()
      Provides a SnapshotClient which can be used to access the Snapshot API. See Snapshot API on elastic.co
    • tasks

      public final TasksClient tasks()
      Provides a TasksClient which can be used to access the Tasks API. See Task Management API on elastic.co
    • security

      public SecurityClient security()
      Provide Security APIs.
      返回:
      the client wrapper for making Security API calls
    • bulk

      public final org.easysearch.action.bulk.BulkResponse bulk​(org.easysearch.action.bulk.BulkRequest bulkRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a bulk request using the Bulk API. See Bulk API on elastic.co
      参数:
      bulkRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • bulkAsync

      public final org.easysearch.client.Cancellable bulkAsync​(org.easysearch.action.bulk.BulkRequest bulkRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.bulk.BulkResponse> listener)
      Asynchronously executes a bulk request using the Bulk API. See Bulk API on elastic.co
      参数:
      bulkRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • reindex

      public final org.easysearch.index.reindex.BulkByScrollResponse reindex​(org.easysearch.index.reindex.ReindexRequest reindexRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a reindex request. See Reindex API on elastic.co
      参数:
      reindexRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • submitReindexTask

      public final TaskSubmissionResponse submitReindexTask​(org.easysearch.index.reindex.ReindexRequest reindexRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Submits a reindex task. See Reindex API on elastic.co
      参数:
      reindexRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the submission response
      抛出:
      java.io.IOException
    • reindexAsync

      public final org.easysearch.client.Cancellable reindexAsync​(org.easysearch.index.reindex.ReindexRequest reindexRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.reindex.BulkByScrollResponse> listener)
      Asynchronously executes a reindex request. See Reindex API on elastic.co
      参数:
      reindexRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • updateByQuery

      public final org.easysearch.index.reindex.BulkByScrollResponse updateByQuery​(org.easysearch.index.reindex.UpdateByQueryRequest updateByQueryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a update by query request. See Update By Query API on elastic.co
      参数:
      updateByQueryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • submitUpdateByQueryTask

      public final TaskSubmissionResponse submitUpdateByQueryTask​(org.easysearch.index.reindex.UpdateByQueryRequest updateByQueryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Submits a update by query task. See Update By Query API on elastic.co
      参数:
      updateByQueryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the submission response
      抛出:
      java.io.IOException
    • updateByQueryAsync

      public final org.easysearch.client.Cancellable updateByQueryAsync​(org.easysearch.index.reindex.UpdateByQueryRequest updateByQueryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.reindex.BulkByScrollResponse> listener)
      Asynchronously executes an update by query request. See Update By Query API on elastic.co
      参数:
      updateByQueryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • deleteByQuery

      public final org.easysearch.index.reindex.BulkByScrollResponse deleteByQuery​(org.easysearch.index.reindex.DeleteByQueryRequest deleteByQueryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a delete by query request. See Delete By Query API on elastic.co
      参数:
      deleteByQueryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • submitDeleteByQueryTask

      public final TaskSubmissionResponse submitDeleteByQueryTask​(org.easysearch.index.reindex.DeleteByQueryRequest deleteByQueryRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Submits a delete by query task See Delete By Query API on elastic.co
      参数:
      deleteByQueryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the submission response
      抛出:
      java.io.IOException
    • deleteByQueryAsync

      public final org.easysearch.client.Cancellable deleteByQueryAsync​(org.easysearch.index.reindex.DeleteByQueryRequest deleteByQueryRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.reindex.BulkByScrollResponse> listener)
      Asynchronously executes a delete by query request. See Delete By Query API on elastic.co
      参数:
      deleteByQueryRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • deleteByQueryRethrottle

      public final org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse deleteByQueryRethrottle​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a delete by query rethrottle request. See Delete By Query API on elastic.co
      参数:
      rethrottleRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • deleteByQueryRethrottleAsync

      public final org.easysearch.client.Cancellable deleteByQueryRethrottleAsync​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse> listener)
      Asynchronously execute an delete by query rethrottle request. See Delete By Query API on elastic.co
      参数:
      rethrottleRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • updateByQueryRethrottle

      public final org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse updateByQueryRethrottle​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a update by query rethrottle request. See Update By Query API on elastic.co
      参数:
      rethrottleRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • updateByQueryRethrottleAsync

      public final org.easysearch.client.Cancellable updateByQueryRethrottleAsync​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse> listener)
      Asynchronously execute an update by query rethrottle request. See Update By Query API on elastic.co
      参数:
      rethrottleRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • reindexRethrottle

      public final org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse reindexRethrottle​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a reindex rethrottling request. See the Reindex rethrottling API on elastic.co
      参数:
      rethrottleRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • reindexRethrottleAsync

      public final org.easysearch.client.Cancellable reindexRethrottleAsync​(RethrottleRequest rethrottleRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.node.tasks.list.ListTasksResponse> listener)
      Executes a reindex rethrottling request. See the Reindex rethrottling API on elastic.co
      参数:
      rethrottleRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • ping

      public final boolean ping​(org.easysearch.client.RequestOptions options) throws java.io.IOException
      Pings the remote Easysearch cluster and returns true if the ping succeeded, false otherwise
      参数:
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      true if the ping succeeded, false otherwise
      抛出:
      java.io.IOException
    • info

      public final MainResponse info​(org.easysearch.client.RequestOptions options) throws java.io.IOException
      Get the cluster info otherwise provided when sending an HTTP request to '/'
      参数:
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • get

      public final org.easysearch.action.get.GetResponse get​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Retrieves a document by id using the Get API. See Get API on elastic.co
      参数:
      getRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • getAsync

      public final org.easysearch.client.Cancellable getAsync​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.get.GetResponse> listener)
      Asynchronously retrieves a document by id using the Get API. See Get API on elastic.co
      参数:
      getRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • multiGet

      @Deprecated public final org.easysearch.action.get.MultiGetResponse multiGet​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      已过时。
      Retrieves multiple documents by id using the Multi Get API. See Multi Get API on elastic.co
      参数:
      multiGetRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • mget

      public final org.easysearch.action.get.MultiGetResponse mget​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Retrieves multiple documents by id using the Multi Get API. See Multi Get API on elastic.co
      参数:
      multiGetRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • multiGetAsync

      @Deprecated public final org.easysearch.client.Cancellable multiGetAsync​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.get.MultiGetResponse> listener)
      Asynchronously retrieves multiple documents by id using the Multi Get API. See Multi Get API on elastic.co
      参数:
      multiGetRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • mgetAsync

      public final org.easysearch.client.Cancellable mgetAsync​(org.easysearch.action.get.MultiGetRequest multiGetRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.get.MultiGetResponse> listener)
      Asynchronously retrieves multiple documents by id using the Multi Get API. See Multi Get API on elastic.co
      参数:
      multiGetRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • exists

      public final boolean exists​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Checks for the existence of a document. Returns true if it exists, false otherwise. See Get API on elastic.co
      参数:
      getRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      true if the document exists, false otherwise
      抛出:
      java.io.IOException
    • existsAsync

      public final org.easysearch.client.Cancellable existsAsync​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<java.lang.Boolean> listener)
      Asynchronously checks for the existence of a document. Returns true if it exists, false otherwise. See Get API on elastic.co
      参数:
      getRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • existsSource

      @Deprecated public boolean existsSource​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Checks for the existence of a document with a "_source" field. Returns true if it exists, false otherwise. See Source exists API on elastic.co
      参数:
      getRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      true if the document and _source field exists, false otherwise
      抛出:
      java.io.IOException
    • existsSourceAsync

      @Deprecated public final org.easysearch.client.Cancellable existsSourceAsync​(org.easysearch.action.get.GetRequest getRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<java.lang.Boolean> listener)
      Asynchronously checks for the existence of a document with a "_source" field. Returns true if it exists, false otherwise. See Source exists API on elastic.co
      参数:
      getRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • existsSource

      public boolean existsSource​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Checks for the existence of a document with a "_source" field. Returns true if it exists, false otherwise. See Source exists API on elastic.co
      参数:
      getSourceRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      true if the document and _source field exists, false otherwise
      抛出:
      java.io.IOException
    • existsSourceAsync

      public final org.easysearch.client.Cancellable existsSourceAsync​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<java.lang.Boolean> listener)
      Asynchronously checks for the existence of a document with a "_source" field. Returns true if it exists, false otherwise. See Source exists API on elastic.co
      参数:
      getSourceRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • getSource

      public GetSourceResponse getSource​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Retrieves the source field only of a document using GetSource API. See Get Source API on elastic.co
      参数:
      getSourceRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • getSourceAsync

      public final org.easysearch.client.Cancellable getSourceAsync​(GetSourceRequest getSourceRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<GetSourceResponse> listener)
      Asynchronously retrieves the source field only of a document using GetSource API. See Get Source API on elastic.co
      参数:
      getSourceRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • index

      public final org.easysearch.action.index.IndexResponse index​(org.easysearch.action.index.IndexRequest indexRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Index a document using the Index API. See Index API on elastic.co
      参数:
      indexRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • indexAsync

      public final org.easysearch.client.Cancellable indexAsync​(org.easysearch.action.index.IndexRequest indexRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.index.IndexResponse> listener)
      Asynchronously index a document using the Index API. See Index API on elastic.co
      参数:
      indexRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • count

      public final CountResponse count​(CountRequest countRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a count request using the Count API. See Count API on elastic.co
      参数:
      countRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • countAsync

      public final org.easysearch.client.Cancellable countAsync​(CountRequest countRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<CountResponse> listener)
      Asynchronously executes a count request using the Count API. See Count API on elastic.co
      参数:
      countRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • update

      public final org.easysearch.action.update.UpdateResponse update​(org.easysearch.action.update.UpdateRequest updateRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Updates a document using the Update API. See Update API on elastic.co
      参数:
      updateRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • updateAsync

      public final org.easysearch.client.Cancellable updateAsync​(org.easysearch.action.update.UpdateRequest updateRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.update.UpdateResponse> listener)
      Asynchronously updates a document using the Update API. See Update API on elastic.co
      参数:
      updateRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • delete

      public final org.easysearch.action.delete.DeleteResponse delete​(org.easysearch.action.delete.DeleteRequest deleteRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Deletes a document by id using the Delete API. See Delete API on elastic.co
      参数:
      deleteRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • deleteAsync

      public final org.easysearch.client.Cancellable deleteAsync​(org.easysearch.action.delete.DeleteRequest deleteRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.delete.DeleteResponse> listener)
      Asynchronously deletes a document by id using the Delete API. See Delete API on elastic.co
      参数:
      deleteRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • search

      public final org.easysearch.action.search.SearchResponse search​(org.easysearch.action.search.SearchRequest searchRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a search request using the Search API. See Search API on elastic.co
      参数:
      searchRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • searchAsync

      public final org.easysearch.client.Cancellable searchAsync​(org.easysearch.action.search.SearchRequest searchRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.SearchResponse> listener)
      Asynchronously executes a search using the Search API. See Search API on elastic.co
      参数:
      searchRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • multiSearch

      @Deprecated public final org.easysearch.action.search.MultiSearchResponse multiSearch​(org.easysearch.action.search.MultiSearchRequest multiSearchRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a multi search using the msearch API. See Multi search API on elastic.co
      参数:
      multiSearchRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • msearch

      public final org.easysearch.action.search.MultiSearchResponse msearch​(org.easysearch.action.search.MultiSearchRequest multiSearchRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a multi search using the msearch API. See Multi search API on elastic.co
      参数:
      multiSearchRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • multiSearchAsync

      @Deprecated public final org.easysearch.client.Cancellable multiSearchAsync​(org.easysearch.action.search.MultiSearchRequest searchRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.MultiSearchResponse> listener)
      Asynchronously executes a multi search using the msearch API. See Multi search API on elastic.co
      参数:
      searchRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • msearchAsync

      public final org.easysearch.client.Cancellable msearchAsync​(org.easysearch.action.search.MultiSearchRequest searchRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.MultiSearchResponse> listener)
      Asynchronously executes a multi search using the msearch API. See Multi search API on elastic.co
      参数:
      searchRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • searchScroll

      @Deprecated public final org.easysearch.action.search.SearchResponse searchScroll​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a search using the Search Scroll API. See Search Scroll API on elastic.co
      参数:
      searchScrollRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • scroll

      public final org.easysearch.action.search.SearchResponse scroll​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a search using the Search Scroll API. See Search Scroll API on elastic.co
      参数:
      searchScrollRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • searchScrollAsync

      @Deprecated public final org.easysearch.client.Cancellable searchScrollAsync​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.SearchResponse> listener)
      Asynchronously executes a search using the Search Scroll API. See Search Scroll API on elastic.co
      参数:
      searchScrollRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • scrollAsync

      public final org.easysearch.client.Cancellable scrollAsync​(org.easysearch.action.search.SearchScrollRequest searchScrollRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.SearchResponse> listener)
      Asynchronously executes a search using the Search Scroll API. See Search Scroll API on elastic.co
      参数:
      searchScrollRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • clearScroll

      public final org.easysearch.action.search.ClearScrollResponse clearScroll​(org.easysearch.action.search.ClearScrollRequest clearScrollRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Clears one or more scroll ids using the Clear Scroll API. See Clear Scroll API on elastic.co
      参数:
      clearScrollRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • clearScrollAsync

      public final org.easysearch.client.Cancellable clearScrollAsync​(org.easysearch.action.search.ClearScrollRequest clearScrollRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.search.ClearScrollResponse> listener)
      Asynchronously clears one or more scroll ids using the Clear Scroll API. See Clear Scroll API on elastic.co
      参数:
      clearScrollRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • searchTemplate

      public final org.easysearch.script.mustache.SearchTemplateResponse searchTemplate​(org.easysearch.script.mustache.SearchTemplateRequest searchTemplateRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a request using the Search Template API. See Search Template API on elastic.co.
      参数:
      searchTemplateRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • searchTemplateAsync

      public final org.easysearch.client.Cancellable searchTemplateAsync​(org.easysearch.script.mustache.SearchTemplateRequest searchTemplateRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.script.mustache.SearchTemplateResponse> listener)
      Asynchronously executes a request using the Search Template API. See Search Template API on elastic.co.
      返回:
      cancellable that may be used to cancel the request
    • explain

      public final org.easysearch.action.explain.ExplainResponse explain​(org.easysearch.action.explain.ExplainRequest explainRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a request using the Explain API. See Explain API on elastic.co
      参数:
      explainRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • explainAsync

      public final org.easysearch.client.Cancellable explainAsync​(org.easysearch.action.explain.ExplainRequest explainRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.explain.ExplainResponse> listener)
      Asynchronously executes a request using the Explain API. See Explain API on elastic.co
      参数:
      explainRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • termvectors

      public final TermVectorsResponse termvectors​(TermVectorsRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Calls the Term Vectors API See Term Vectors API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      抛出:
      java.io.IOException
    • termvectorsAsync

      public final org.easysearch.client.Cancellable termvectorsAsync​(TermVectorsRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<TermVectorsResponse> listener)
      Asynchronously calls the Term Vectors API See Term Vectors API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • mtermvectors

      public final MultiTermVectorsResponse mtermvectors​(MultiTermVectorsRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Calls the Multi Term Vectors API See Multi Term Vectors API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      抛出:
      java.io.IOException
    • mtermvectorsAsync

      public final org.easysearch.client.Cancellable mtermvectorsAsync​(MultiTermVectorsRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<MultiTermVectorsResponse> listener)
      Asynchronously calls the Multi Term Vectors API See Multi Term Vectors API on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • rankEval

      public final org.easysearch.index.rankeval.RankEvalResponse rankEval​(org.easysearch.index.rankeval.RankEvalRequest rankEvalRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a request using the Ranking Evaluation API. See Ranking Evaluation API on elastic.co
      参数:
      rankEvalRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • msearchTemplate

      public final org.easysearch.script.mustache.MultiSearchTemplateResponse msearchTemplate​(org.easysearch.script.mustache.MultiSearchTemplateRequest multiSearchTemplateRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a request using the Multi Search Template API. See Multi Search Template API on elastic.co.
      抛出:
      java.io.IOException
    • msearchTemplateAsync

      public final org.easysearch.client.Cancellable msearchTemplateAsync​(org.easysearch.script.mustache.MultiSearchTemplateRequest multiSearchTemplateRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.script.mustache.MultiSearchTemplateResponse> listener)
      Asynchronously executes a request using the Multi Search Template API See Multi Search Template API on elastic.co.
      返回:
      cancellable that may be used to cancel the request
    • rankEvalAsync

      public final org.easysearch.client.Cancellable rankEvalAsync​(org.easysearch.index.rankeval.RankEvalRequest rankEvalRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.index.rankeval.RankEvalResponse> listener)
      Asynchronously executes a request using the Ranking Evaluation API. See Ranking Evaluation API on elastic.co
      参数:
      rankEvalRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • fieldCaps

      public final org.easysearch.action.fieldcaps.FieldCapabilitiesResponse fieldCaps​(org.easysearch.action.fieldcaps.FieldCapabilitiesRequest fieldCapabilitiesRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Executes a request using the Field Capabilities API. See Field Capabilities API on elastic.co.
      参数:
      fieldCapabilitiesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • getScript

      public org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptResponse getScript​(org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Get stored script by id. See How to use scripts on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • getScriptAsync

      public org.easysearch.client.Cancellable getScriptAsync​(org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.admin.cluster.storedscripts.GetStoredScriptResponse> listener)
      Asynchronously get stored script by id. See How to use scripts on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • deleteScript

      public org.easysearch.action.support.master.AcknowledgedResponse deleteScript​(org.easysearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest request, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Delete stored script by id. See How to use scripts on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • deleteScriptAsync

      public org.easysearch.client.Cancellable deleteScriptAsync​(org.easysearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest request, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously delete stored script by id. See How to use scripts on elastic.co
      参数:
      request - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • putScript

      public org.easysearch.action.support.master.AcknowledgedResponse putScript​(org.easysearch.action.admin.cluster.storedscripts.PutStoredScriptRequest putStoredScriptRequest, org.easysearch.client.RequestOptions options) throws java.io.IOException
      Puts an stored script using the Scripting API. See Scripting API on elastic.co
      参数:
      putStoredScriptRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      返回:
      the response
      抛出:
      java.io.IOException
    • putScriptAsync

      public org.easysearch.client.Cancellable putScriptAsync​(org.easysearch.action.admin.cluster.storedscripts.PutStoredScriptRequest putStoredScriptRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.support.master.AcknowledgedResponse> listener)
      Asynchronously puts an stored script using the Scripting API. See Scripting API on elastic.co
      参数:
      putStoredScriptRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • fieldCapsAsync

      public final org.easysearch.client.Cancellable fieldCapsAsync​(org.easysearch.action.fieldcaps.FieldCapabilitiesRequest fieldCapabilitiesRequest, org.easysearch.client.RequestOptions options, org.easysearch.action.ActionListener<org.easysearch.action.fieldcaps.FieldCapabilitiesResponse> listener)
      Asynchronously executes a request using the Field Capabilities API. See Field Capabilities API on elastic.co.
      参数:
      fieldCapabilitiesRequest - the request
      options - the request options (e.g. headers), use RequestOptions.DEFAULT if nothing needs to be customized
      listener - the listener to be notified upon request completion
      返回:
      cancellable that may be used to cancel the request
    • performRequestAndParseEntity

      @Deprecated protected final <Req extends org.easysearch.action.ActionRequest,​ Resp> Resp performRequestAndParseEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, java.util.Set<java.lang.Integer> ignores) throws java.io.IOException
      已过时。
      If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation layer has been added to the ReST client, and requests should extend Validatable instead of ActionRequest.
      抛出:
      java.io.IOException
    • performRequestAndParseEntity

      protected final <Req extends Validatable,​ Resp> Resp performRequestAndParseEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, java.util.Set<java.lang.Integer> ignores) throws java.io.IOException
      Defines a helper method for performing a request and then parsing the returned entity using the provided entityParser.
      抛出:
      java.io.IOException
    • performRequest

      @Deprecated protected final <Req extends org.easysearch.action.ActionRequest,​ Resp> Resp performRequest​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.client.Response,​Resp,​java.io.IOException> responseConverter, java.util.Set<java.lang.Integer> ignores) throws java.io.IOException
      已过时。
      If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation layer has been added to the ReST client, and requests should extend Validatable instead of ActionRequest.
      抛出:
      java.io.IOException
    • performRequest

      protected final <Req extends Validatable,​ Resp> Resp performRequest​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.client.Response,​Resp,​java.io.IOException> responseConverter, java.util.Set<java.lang.Integer> ignores) throws java.io.IOException
      Defines a helper method for performing a request.
      抛出:
      java.io.IOException
    • performRequestAndParseOptionalEntity

      protected final <Req extends Validatable,​ Resp> java.util.Optional<Resp> performRequestAndParseOptionalEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser) throws java.io.IOException
      Defines a helper method for requests that can 404 and in which case will return an empty Optional otherwise tries to parse the response body
      抛出:
      java.io.IOException
    • performRequestAsyncAndParseEntity

      @Deprecated protected final <Req extends org.easysearch.action.ActionRequest,​ Resp> org.easysearch.client.Cancellable performRequestAsyncAndParseEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, org.easysearch.action.ActionListener<Resp> listener, java.util.Set<java.lang.Integer> ignores)
      已过时。
      If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation layer has been added to the ReST client, and requests should extend Validatable instead of ActionRequest.
      返回:
      Cancellable instance that may be used to cancel the request
    • performRequestAsyncAndParseEntity

      protected final <Req extends Validatable,​ Resp> org.easysearch.client.Cancellable performRequestAsyncAndParseEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, org.easysearch.action.ActionListener<Resp> listener, java.util.Set<java.lang.Integer> ignores)
      Defines a helper method for asynchronously performing a request.
      返回:
      Cancellable instance that may be used to cancel the request
    • performRequestAsync

      @Deprecated protected final <Req extends org.easysearch.action.ActionRequest,​ Resp> org.easysearch.client.Cancellable performRequestAsync​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.client.Response,​Resp,​java.io.IOException> responseConverter, org.easysearch.action.ActionListener<Resp> listener, java.util.Set<java.lang.Integer> ignores)
      已过时。
      If creating a new HLRC ReST API call, consider creating new actions instead of reusing server actions. The Validation layer has been added to the ReST client, and requests should extend Validatable instead of ActionRequest.
      返回:
      Cancellable instance that may be used to cancel the request
    • performRequestAsync

      protected final <Req extends Validatable,​ Resp> org.easysearch.client.Cancellable performRequestAsync​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.client.Response,​Resp,​java.io.IOException> responseConverter, org.easysearch.action.ActionListener<Resp> listener, java.util.Set<java.lang.Integer> ignores)
      Defines a helper method for asynchronously performing a request.
      返回:
      Cancellable instance that may be used to cancel the request
    • performRequestAsyncAndParseOptionalEntity

      protected final <Req extends Validatable,​ Resp> org.easysearch.client.Cancellable performRequestAsyncAndParseOptionalEntity​(Req request, org.easysearch.common.CheckedFunction<Req,​org.easysearch.client.Request,​java.io.IOException> requestConverter, org.easysearch.client.RequestOptions options, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser, org.easysearch.action.ActionListener<java.util.Optional<Resp>> listener)
      Asynchronous request which returns empty Optionals in the case of 404s or parses entity into an Optional
      返回:
      Cancellable instance that may be used to cancel the request
    • parseResponseException

      protected final org.easysearch.EasysearchStatusException parseResponseException​(org.easysearch.client.ResponseException responseException)
      Converts a ResponseException obtained from the low level REST client into an EasysearchException. If a response body was returned, tries to parse it as an error returned from Easysearch. If no response body was returned or anything goes wrong while parsing the error, returns a new EasysearchStatusException that wraps the original ResponseException. The potential exception obtained while parsing is added to the returned exception as a suppressed exception. This method is guaranteed to not throw any exception eventually thrown while parsing.
    • parseEntity

      protected final <Resp> Resp parseEntity​(org.apache.http.HttpEntity entity, org.easysearch.common.CheckedFunction<org.easysearch.common.xcontent.XContentParser,​Resp,​java.io.IOException> entityParser) throws java.io.IOException
      抛出:
      java.io.IOException
    • convertExistsResponse

      protected static boolean convertExistsResponse​(org.easysearch.client.Response response)