Package org.opensearch.client.opensearch
Class OpenSearchClientBase<Self extends OpenSearchClientBase<Self>>
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,Self>
-
- org.opensearch.client.opensearch.OpenSearchClientBase<Self>
-
- Direct Known Subclasses:
OpenSearchClient
@Generated("org.opensearch.client.codegen.CodeGenerator") public abstract class OpenSearchClientBase<Self extends OpenSearchClientBase<Self>> extends ApiClient<OpenSearchTransport,Self>Client for the namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchClientBase(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenSearchMlClientml()OpenSearchSearchPipelineClientsearchPipeline()SearchShardsResponsesearchShards()Returns information about the indexes and shards that a search request would be executed against.SearchShardsResponsesearchShards(java.util.function.Function<SearchShardsRequest.Builder,ObjectBuilder<SearchShardsRequest>> fn)Returns information about the indexes and shards that a search request would be executed against.SearchShardsResponsesearchShards(SearchShardsRequest request)Returns information about the indexes and shards that a search request would be executed against.-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer, withTransportOptions
-
-
-
-
Constructor Detail
-
OpenSearchClientBase
public OpenSearchClientBase(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
ml
public OpenSearchMlClient ml()
-
searchPipeline
public OpenSearchSearchPipelineClient searchPipeline()
-
searchShards
public SearchShardsResponse searchShards(SearchShardsRequest request) throws java.io.IOException, OpenSearchException
Returns information about the indexes and shards that a search request would be executed against.- Throws:
java.io.IOExceptionOpenSearchException
-
searchShards
public final SearchShardsResponse searchShards(java.util.function.Function<SearchShardsRequest.Builder,ObjectBuilder<SearchShardsRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about the indexes and shards that a search request would be executed against.- Parameters:
fn- a function that initializes a builder to create theSearchShardsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
searchShards
public final SearchShardsResponse searchShards() throws java.io.IOException, OpenSearchException
Returns information about the indexes and shards that a search request would be executed against.- Throws:
java.io.IOExceptionOpenSearchException
-
-