Class OpenSearchClient
OpenSearchClient is a strongly typed client which exposes fully mapped OpenSearch endpoints
Inheritance
OpenSearchClient
Assembly: OpenSearch.Client.dll
Syntax
public class OpenSearchClient : IOpenSearchClient
Constructors
|
Edit this page
View Source
OpenSearchClient()
Declaration
public OpenSearchClient()
|
Edit this page
View Source
OpenSearchClient(IConnectionSettingsValues)
Declaration
public OpenSearchClient(IConnectionSettingsValues connectionSettings)
Parameters
|
Edit this page
View Source
OpenSearchClient(ITransport<IConnectionSettingsValues>)
Declaration
public OpenSearchClient(ITransport<IConnectionSettingsValues> transport)
Parameters
|
Edit this page
View Source
OpenSearchClient(string, ApiKeyAuthenticationCredentials)
Declaration
public OpenSearchClient(string cloudId, ApiKeyAuthenticationCredentials credentials)
Parameters
|
Edit this page
View Source
OpenSearchClient(string, BasicAuthenticationCredentials)
Declaration
public OpenSearchClient(string cloudId, BasicAuthenticationCredentials credentials)
Parameters
|
Edit this page
View Source
OpenSearchClient(Uri)
Declaration
public OpenSearchClient(Uri uri)
Parameters
Type |
Name |
Description |
Uri |
uri |
|
Properties
|
Edit this page
View Source
Cat
Declaration
public ICatNamespace Cat { get; }
Property Value
|
Edit this page
View Source
Cluster
Declaration
public IClusterNamespace Cluster { get; }
Property Value
|
Edit this page
View Source
ConnectionSettings
The configured connection settings for the client
Declaration
public IConnectionSettingsValues ConnectionSettings { get; }
Property Value
|
Edit this page
View Source
DanglingIndices
Declaration
public IDanglingIndicesNamespace DanglingIndices { get; }
Property Value
|
Edit this page
View Source
Http
Declaration
public IHttpNamespace Http { get; }
Property Value
|
Edit this page
View Source
Indices
Declaration
public IIndicesNamespace Indices { get; }
Property Value
|
Edit this page
View Source
Infer
Access to the Inferrer that this instance of the client uses to resolve types to e.g
indices, property, field names
Declaration
public Inferrer Infer { get; }
Property Value
|
Edit this page
View Source
Ingest
Declaration
public IIngestNamespace Ingest { get; }
Property Value
|
Edit this page
View Source
LowLevel
An instance of the low level client that uses the serializers from the highlevel client.
Declaration
public IOpenSearchLowLevelClient LowLevel { get; }
Property Value
|
Edit this page
View Source
Nodes
Declaration
public INodesNamespace Nodes { get; }
Property Value
|
Edit this page
View Source
RequestResponseSerializer
Declaration
public IOpenSearchSerializer RequestResponseSerializer { get; }
Property Value
|
Edit this page
View Source
Snapshot
Declaration
public ISnapshotNamespace Snapshot { get; }
Property Value
|
Edit this page
View Source
SourceSerializer
Declaration
public IOpenSearchSerializer SourceSerializer { get; }
Property Value
|
Edit this page
View Source
Tasks
Declaration
public ITasksNamespace Tasks { get; }
Property Value
Methods
|
Edit this page
View Source
Bulk(IBulkRequest)
Declaration
public BulkResponse Bulk(IBulkRequest request)
Parameters
Returns
|
Edit this page
View Source
Bulk(Func<BulkDescriptor, IBulkRequest>)
Declaration
public BulkResponse Bulk(Func<BulkDescriptor, IBulkRequest> selector)
Parameters
Returns
|
Edit this page
View Source
BulkAll<T>(IBulkAllRequest<T>, CancellationToken)
Declaration
public BulkAllObservable<T> BulkAll<T>(IBulkAllRequest<T> request, CancellationToken cancellationToken = default) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
BulkAll<T>(IEnumerable<T>, Func<BulkAllDescriptor<T>, IBulkAllRequest<T>>, CancellationToken)
Declaration
public BulkAllObservable<T> BulkAll<T>(IEnumerable<T> documents, Func<BulkAllDescriptor<T>, IBulkAllRequest<T>> selector, CancellationToken cancellationToken = default) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
BulkAsync(IBulkRequest, CancellationToken)
Declaration
public Task<BulkResponse> BulkAsync(IBulkRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
BulkAsync(Func<BulkDescriptor, IBulkRequest>, CancellationToken)
Declaration
public Task<BulkResponse> BulkAsync(Func<BulkDescriptor, IBulkRequest> selector, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Declaration
public ClearScrollResponse ClearScroll(IClearScrollRequest request)
Parameters
Returns
|
Edit this page
View Source
Declaration
public ClearScrollResponse ClearScroll(Func<ClearScrollDescriptor, IClearScrollRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<ClearScrollResponse> ClearScrollAsync(IClearScrollRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Declaration
public Task<ClearScrollResponse> ClearScrollAsync(Func<ClearScrollDescriptor, IClearScrollRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Count(ICountRequest)
Declaration
public CountResponse Count(ICountRequest request)
Parameters
Returns
|
Edit this page
View Source
CountAsync(ICountRequest, CancellationToken)
Declaration
public Task<CountResponse> CountAsync(ICountRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
CountAsync<TDocument>(Func<CountDescriptor<TDocument>, ICountRequest>, CancellationToken)
Declaration
public Task<CountResponse> CountAsync<TDocument>(Func<CountDescriptor<TDocument>, ICountRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Count<TDocument>(Func<CountDescriptor<TDocument>, ICountRequest>)
Declaration
public CountResponse Count<TDocument>(Func<CountDescriptor<TDocument>, ICountRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
CreateAsync<TDocument>(ICreateRequest<TDocument>, CancellationToken)
Declaration
public Task<CreateResponse> CreateAsync<TDocument>(ICreateRequest<TDocument> request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
CreateAsync<TDocument>(TDocument, Func<CreateDescriptor<TDocument>, ICreateRequest<TDocument>>, CancellationToken)
Declaration
public Task<CreateResponse> CreateAsync<TDocument>(TDocument document, Func<CreateDescriptor<TDocument>, ICreateRequest<TDocument>> selector, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
CreateDocumentAsync<TDocument>(TDocument, CancellationToken)
Creates a new typed document in a specific index. If a document with the same index, type and id already exists,
A 409 Conflict HTTP response status code and error will be returned.
Declaration
public Task<CreateResponse> CreateDocumentAsync<TDocument>(TDocument document, CancellationToken cancellationToken = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
The document type used to infer the default index, type and id
|
|
Edit this page
View Source
CreateDocument<TDocument>(TDocument)
Creates a new typed document in a specific index. If a document with the same index, type and id already exists,
A 409 Conflict HTTP response status code and error will be returned.
Declaration
public CreateResponse CreateDocument<TDocument>(TDocument document) where TDocument : class
Parameters
Type |
Name |
Description |
TDocument |
document |
The document to be created. Id will be inferred from (in order):
1. Id property set up on ConnectionSettings for TDocument
2. IdProperty property on OpenSearchTypeAttribute applied to
TDocument 3. A property named Id on TDocument
|
Returns
Type Parameters
Name |
Description |
TDocument |
The document type used to infer the default index, type and id
|
|
Edit this page
View Source
CreatePit(ICreatePitRequest)
Declaration
public CreatePitResponse CreatePit(ICreatePitRequest request)
Parameters
Returns
|
Edit this page
View Source
CreatePit(Indices, Func<CreatePitDescriptor, ICreatePitRequest>)
Declaration
public CreatePitResponse CreatePit(Indices index, Func<CreatePitDescriptor, ICreatePitRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
CreatePitAsync(ICreatePitRequest, CancellationToken)
Declaration
public Task<CreatePitResponse> CreatePitAsync(ICreatePitRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
CreatePitAsync(Indices, Func<CreatePitDescriptor, ICreatePitRequest>, CancellationToken)
Declaration
public Task<CreatePitResponse> CreatePitAsync(Indices index, Func<CreatePitDescriptor, ICreatePitRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Create<TDocument>(ICreateRequest<TDocument>)
Declaration
public CreateResponse Create<TDocument>(ICreateRequest<TDocument> request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Create<TDocument>(TDocument, Func<CreateDescriptor<TDocument>, ICreateRequest<TDocument>>)
Declaration
public CreateResponse Create<TDocument>(TDocument document, Func<CreateDescriptor<TDocument>, ICreateRequest<TDocument>> selector) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Delete(IDeleteRequest)
Declaration
public DeleteResponse Delete(IDeleteRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPits(IDeleteAllPitsRequest)
Declaration
public DeleteAllPitsResponse DeleteAllPits(IDeleteAllPitsRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPits(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest>)
Declaration
public DeleteAllPitsResponse DeleteAllPits(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPitsAsync(IDeleteAllPitsRequest, CancellationToken)
Declaration
public Task<DeleteAllPitsResponse> DeleteAllPitsAsync(IDeleteAllPitsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPitsAsync(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest>, CancellationToken)
Declaration
public Task<DeleteAllPitsResponse> DeleteAllPitsAsync(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteAsync(IDeleteRequest, CancellationToken)
Declaration
public Task<DeleteResponse> DeleteAsync(IDeleteRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteAsync<TDocument>(DocumentPath<TDocument>, Func<DeleteDescriptor<TDocument>, IDeleteRequest>, CancellationToken)
Declaration
public Task<DeleteResponse> DeleteAsync<TDocument>(DocumentPath<TDocument> id, Func<DeleteDescriptor<TDocument>, IDeleteRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
DeleteByQuery(IDeleteByQueryRequest)
Declaration
public DeleteByQueryResponse DeleteByQuery(IDeleteByQueryRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryAsync(IDeleteByQueryRequest, CancellationToken)
Declaration
public Task<DeleteByQueryResponse> DeleteByQueryAsync(IDeleteByQueryRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryAsync<TDocument>(Func<DeleteByQueryDescriptor<TDocument>, IDeleteByQueryRequest>, CancellationToken)
Declaration
public Task<DeleteByQueryResponse> DeleteByQueryAsync<TDocument>(Func<DeleteByQueryDescriptor<TDocument>, IDeleteByQueryRequest> selector, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
DeleteByQueryRethrottle(IDeleteByQueryRethrottleRequest)
Declaration
public ListTasksResponse DeleteByQueryRethrottle(IDeleteByQueryRethrottleRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryRethrottle(TaskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest>)
Declaration
public ListTasksResponse DeleteByQueryRethrottle(TaskId taskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryRethrottleAsync(IDeleteByQueryRethrottleRequest, CancellationToken)
Declaration
public Task<ListTasksResponse> DeleteByQueryRethrottleAsync(IDeleteByQueryRethrottleRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryRethrottleAsync(TaskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest>, CancellationToken)
Declaration
public Task<ListTasksResponse> DeleteByQueryRethrottleAsync(TaskId taskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteByQuery<TDocument>(Func<DeleteByQueryDescriptor<TDocument>, IDeleteByQueryRequest>)
Declaration
public DeleteByQueryResponse DeleteByQuery<TDocument>(Func<DeleteByQueryDescriptor<TDocument>, IDeleteByQueryRequest> selector) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
DeletePit(IDeletePitRequest)
Declaration
public DeletePitResponse DeletePit(IDeletePitRequest request)
Parameters
Returns
|
Edit this page
View Source
DeletePit(Func<DeletePitDescriptor, IDeletePitRequest>)
Declaration
public DeletePitResponse DeletePit(Func<DeletePitDescriptor, IDeletePitRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeletePitAsync(IDeletePitRequest, CancellationToken)
Declaration
public Task<DeletePitResponse> DeletePitAsync(IDeletePitRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeletePitAsync(Func<DeletePitDescriptor, IDeletePitRequest>, CancellationToken)
Declaration
public Task<DeletePitResponse> DeletePitAsync(Func<DeletePitDescriptor, IDeletePitRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteScript(IDeleteScriptRequest)
Declaration
public DeleteScriptResponse DeleteScript(IDeleteScriptRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteScript(Id, Func<DeleteScriptDescriptor, IDeleteScriptRequest>)
Declaration
public DeleteScriptResponse DeleteScript(Id id, Func<DeleteScriptDescriptor, IDeleteScriptRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeleteScriptAsync(IDeleteScriptRequest, CancellationToken)
Declaration
public Task<DeleteScriptResponse> DeleteScriptAsync(IDeleteScriptRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteScriptAsync(Id, Func<DeleteScriptDescriptor, IDeleteScriptRequest>, CancellationToken)
Declaration
public Task<DeleteScriptResponse> DeleteScriptAsync(Id id, Func<DeleteScriptDescriptor, IDeleteScriptRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Delete<TDocument>(DocumentPath<TDocument>, Func<DeleteDescriptor<TDocument>, IDeleteRequest>)
Declaration
public DeleteResponse Delete<TDocument>(DocumentPath<TDocument> id, Func<DeleteDescriptor<TDocument>, IDeleteRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
DocumentExists(IDocumentExistsRequest)
Declaration
public ExistsResponse DocumentExists(IDocumentExistsRequest request)
Parameters
Returns
|
Edit this page
View Source
DocumentExistsAsync(IDocumentExistsRequest, CancellationToken)
Declaration
public Task<ExistsResponse> DocumentExistsAsync(IDocumentExistsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DocumentExistsAsync<TDocument>(DocumentPath<TDocument>, Func<DocumentExistsDescriptor<TDocument>, IDocumentExistsRequest>, CancellationToken)
Declaration
public Task<ExistsResponse> DocumentExistsAsync<TDocument>(DocumentPath<TDocument> id, Func<DocumentExistsDescriptor<TDocument>, IDocumentExistsRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
DocumentExists<TDocument>(DocumentPath<TDocument>, Func<DocumentExistsDescriptor<TDocument>, IDocumentExistsRequest>)
Declaration
public ExistsResponse DocumentExists<TDocument>(DocumentPath<TDocument> id, Func<DocumentExistsDescriptor<TDocument>, IDocumentExistsRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
ExecutePainlessScriptAsync<TResult>(IExecutePainlessScriptRequest, CancellationToken)
Declaration
public Task<ExecutePainlessScriptResponse<TResult>> ExecutePainlessScriptAsync<TResult>(IExecutePainlessScriptRequest request, CancellationToken ct = default)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
ExecutePainlessScriptAsync<TResult>(Func<ExecutePainlessScriptDescriptor, IExecutePainlessScriptRequest>, CancellationToken)
Declaration
public Task<ExecutePainlessScriptResponse<TResult>> ExecutePainlessScriptAsync<TResult>(Func<ExecutePainlessScriptDescriptor, IExecutePainlessScriptRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
ExecutePainlessScript<TResult>(IExecutePainlessScriptRequest)
Declaration
public ExecutePainlessScriptResponse<TResult> ExecutePainlessScript<TResult>(IExecutePainlessScriptRequest request)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
ExecutePainlessScript<TResult>(Func<ExecutePainlessScriptDescriptor, IExecutePainlessScriptRequest>)
Declaration
public ExecutePainlessScriptResponse<TResult> ExecutePainlessScript<TResult>(Func<ExecutePainlessScriptDescriptor, IExecutePainlessScriptRequest> selector = null)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
ExplainAsync<TDocument>(DocumentPath<TDocument>, Func<ExplainDescriptor<TDocument>, IExplainRequest>, CancellationToken)
Declaration
public Task<ExplainResponse<TDocument>> ExplainAsync<TDocument>(DocumentPath<TDocument> id, Func<ExplainDescriptor<TDocument>, IExplainRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
ExplainAsync<TDocument>(IExplainRequest, CancellationToken)
Declaration
public Task<ExplainResponse<TDocument>> ExplainAsync<TDocument>(IExplainRequest request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Explain<TDocument>(DocumentPath<TDocument>, Func<ExplainDescriptor<TDocument>, IExplainRequest>)
Declaration
public ExplainResponse<TDocument> Explain<TDocument>(DocumentPath<TDocument> id, Func<ExplainDescriptor<TDocument>, IExplainRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Explain<TDocument>(IExplainRequest)
Declaration
public ExplainResponse<TDocument> Explain<TDocument>(IExplainRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
FieldCapabilities(IFieldCapabilitiesRequest)
Declaration
public FieldCapabilitiesResponse FieldCapabilities(IFieldCapabilitiesRequest request)
Parameters
Returns
|
Edit this page
View Source
FieldCapabilities(Indices, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest>)
Declaration
public FieldCapabilitiesResponse FieldCapabilities(Indices index = null, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
FieldCapabilitiesAsync(IFieldCapabilitiesRequest, CancellationToken)
Declaration
public Task<FieldCapabilitiesResponse> FieldCapabilitiesAsync(IFieldCapabilitiesRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
FieldCapabilitiesAsync(Indices, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest>, CancellationToken)
Declaration
public Task<FieldCapabilitiesResponse> FieldCapabilitiesAsync(Indices index = null, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetAllPits(IGetAllPitsRequest)
Declaration
public GetAllPitsResponse GetAllPits(IGetAllPitsRequest request)
Parameters
Returns
|
Edit this page
View Source
GetAllPits(Func<GetAllPitsDescriptor, IGetAllPitsRequest>)
Declaration
public GetAllPitsResponse GetAllPits(Func<GetAllPitsDescriptor, IGetAllPitsRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
GetAllPitsAsync(IGetAllPitsRequest, CancellationToken)
Declaration
public Task<GetAllPitsResponse> GetAllPitsAsync(IGetAllPitsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetAllPitsAsync(Func<GetAllPitsDescriptor, IGetAllPitsRequest>, CancellationToken)
Declaration
public Task<GetAllPitsResponse> GetAllPitsAsync(Func<GetAllPitsDescriptor, IGetAllPitsRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetAsync<TDocument>(DocumentPath<TDocument>, Func<GetDescriptor<TDocument>, IGetRequest>, CancellationToken)
Declaration
public Task<GetResponse<TDocument>> GetAsync<TDocument>(DocumentPath<TDocument> id, Func<GetDescriptor<TDocument>, IGetRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
GetAsync<TDocument>(IGetRequest, CancellationToken)
Declaration
public Task<GetResponse<TDocument>> GetAsync<TDocument>(IGetRequest request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
GetScript(IGetScriptRequest)
Declaration
public GetScriptResponse GetScript(IGetScriptRequest request)
Parameters
Returns
|
Edit this page
View Source
GetScript(Id, Func<GetScriptDescriptor, IGetScriptRequest>)
Declaration
public GetScriptResponse GetScript(Id id, Func<GetScriptDescriptor, IGetScriptRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
GetScriptAsync(IGetScriptRequest, CancellationToken)
Declaration
public Task<GetScriptResponse> GetScriptAsync(IGetScriptRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetScriptAsync(Id, Func<GetScriptDescriptor, IGetScriptRequest>, CancellationToken)
Declaration
public Task<GetScriptResponse> GetScriptAsync(Id id, Func<GetScriptDescriptor, IGetScriptRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Get<TDocument>(DocumentPath<TDocument>, Func<GetDescriptor<TDocument>, IGetRequest>)
Declaration
public GetResponse<TDocument> Get<TDocument>(DocumentPath<TDocument> id, Func<GetDescriptor<TDocument>, IGetRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Get<TDocument>(IGetRequest)
Declaration
public GetResponse<TDocument> Get<TDocument>(IGetRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
IndexAsync<TDocument>(IIndexRequest<TDocument>, CancellationToken)
Declaration
public Task<IndexResponse> IndexAsync<TDocument>(IIndexRequest<TDocument> request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
IndexAsync<TDocument>(TDocument, Func<IndexDescriptor<TDocument>, IIndexRequest<TDocument>>, CancellationToken)
Declaration
public Task<IndexResponse> IndexAsync<TDocument>(TDocument document, Func<IndexDescriptor<TDocument>, IIndexRequest<TDocument>> selector, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
IndexDocumentAsync<TDocument>(TDocument, CancellationToken)
Declaration
public Task<IndexResponse> IndexDocumentAsync<TDocument>(TDocument document, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
The document type used to infer the default index and id
|
|
Edit this page
View Source
IndexDocument<TDocument>(TDocument)
Declaration
public IndexResponse IndexDocument<TDocument>(TDocument document) where TDocument : class
Parameters
Type |
Name |
Description |
TDocument |
document |
The document to be indexed. Id will be inferred from (in order):
1. Id property set up on ConnectionSettings for TDocument
2. IdProperty property on OpenSearchTypeAttribute applied to
TDocument 3. A property named Id on TDocument
|
Returns
Type Parameters
Name |
Description |
TDocument |
The document type used to infer the default index and id
|
|
Edit this page
View Source
Index<TDocument>(IIndexRequest<TDocument>)
Declaration
public IndexResponse Index<TDocument>(IIndexRequest<TDocument> request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Index<TDocument>(TDocument, Func<IndexDescriptor<TDocument>, IIndexRequest<TDocument>>)
Declaration
public IndexResponse Index<TDocument>(TDocument document, Func<IndexDescriptor<TDocument>, IIndexRequest<TDocument>> selector) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Map(IPutMappingRequest)
Declaration
public PutMappingResponse Map(IPutMappingRequest request)
Parameters
Returns
|
Edit this page
View Source
MapAsync(IPutMappingRequest, CancellationToken)
Declaration
public Task<PutMappingResponse> MapAsync(IPutMappingRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MapAsync<T>(Func<PutMappingDescriptor<T>, IPutMappingRequest>, CancellationToken)
Declaration
public Task<PutMappingResponse> MapAsync<T>(Func<PutMappingDescriptor<T>, IPutMappingRequest> selector, CancellationToken ct = default) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Map<T>(Func<PutMappingDescriptor<T>, IPutMappingRequest>)
The put mapping API allows to register specific mapping definition for a specific type.
 
https://opensearch.org/docs/latest/opensearch/rest-api/update-mapping/
Declaration
public PutMappingResponse Map<T>(Func<PutMappingDescriptor<T>, IPutMappingRequest> selector) where T : class
Parameters
Returns
Type Parameters
Name |
Description |
T |
The type we want to map in OpenSearch
|
|
Edit this page
View Source
MultiGet(IMultiGetRequest)
Declaration
public MultiGetResponse MultiGet(IMultiGetRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiGet(Func<MultiGetDescriptor, IMultiGetRequest>)
Declaration
public MultiGetResponse MultiGet(Func<MultiGetDescriptor, IMultiGetRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiGetAsync(IMultiGetRequest, CancellationToken)
Declaration
public Task<MultiGetResponse> MultiGetAsync(IMultiGetRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiGetAsync(Func<MultiGetDescriptor, IMultiGetRequest>, CancellationToken)
Declaration
public Task<MultiGetResponse> MultiGetAsync(Func<MultiGetDescriptor, IMultiGetRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearch(IMultiSearchRequest)
Declaration
public MultiSearchResponse MultiSearch(IMultiSearchRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiSearch(Indices, Func<MultiSearchDescriptor, IMultiSearchRequest>)
Declaration
public MultiSearchResponse MultiSearch(Indices index = null, Func<MultiSearchDescriptor, IMultiSearchRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiSearchAsync(IMultiSearchRequest, CancellationToken)
Declaration
public Task<MultiSearchResponse> MultiSearchAsync(IMultiSearchRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearchAsync(Indices, Func<MultiSearchDescriptor, IMultiSearchRequest>, CancellationToken)
Declaration
public Task<MultiSearchResponse> MultiSearchAsync(Indices index = null, Func<MultiSearchDescriptor, IMultiSearchRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplate(IMultiSearchTemplateRequest)
Declaration
public MultiSearchResponse MultiSearchTemplate(IMultiSearchTemplateRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplate(Indices, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest>)
Declaration
public MultiSearchResponse MultiSearchTemplate(Indices index = null, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplateAsync(IMultiSearchTemplateRequest, CancellationToken)
Declaration
public Task<MultiSearchResponse> MultiSearchTemplateAsync(IMultiSearchTemplateRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplateAsync(Indices, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest>, CancellationToken)
Declaration
public Task<MultiSearchResponse> MultiSearchTemplateAsync(Indices index = null, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectors(IMultiTermVectorsRequest)
Declaration
public MultiTermVectorsResponse MultiTermVectors(IMultiTermVectorsRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectors(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest>)
Declaration
public MultiTermVectorsResponse MultiTermVectors(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectorsAsync(IMultiTermVectorsRequest, CancellationToken)
Declaration
public Task<MultiTermVectorsResponse> MultiTermVectorsAsync(IMultiTermVectorsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectorsAsync(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest>, CancellationToken)
Declaration
public Task<MultiTermVectorsResponse> MultiTermVectorsAsync(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Ping(IPingRequest)
Declaration
public PingResponse Ping(IPingRequest request)
Parameters
Returns
|
Edit this page
View Source
Ping(Func<PingDescriptor, IPingRequest>)
Declaration
public PingResponse Ping(Func<PingDescriptor, IPingRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
PingAsync(IPingRequest, CancellationToken)
Declaration
public Task<PingResponse> PingAsync(IPingRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
PingAsync(Func<PingDescriptor, IPingRequest>, CancellationToken)
Declaration
public Task<PingResponse> PingAsync(Func<PingDescriptor, IPingRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
PutScript(IPutScriptRequest)
Declaration
public PutScriptResponse PutScript(IPutScriptRequest request)
Parameters
Returns
|
Edit this page
View Source
PutScript(Id, Func<PutScriptDescriptor, IPutScriptRequest>)
Declaration
public PutScriptResponse PutScript(Id id, Func<PutScriptDescriptor, IPutScriptRequest> selector)
Parameters
Returns
|
Edit this page
View Source
PutScriptAsync(IPutScriptRequest, CancellationToken)
Declaration
public Task<PutScriptResponse> PutScriptAsync(IPutScriptRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
PutScriptAsync(Id, Func<PutScriptDescriptor, IPutScriptRequest>, CancellationToken)
Declaration
public Task<PutScriptResponse> PutScriptAsync(Id id, Func<PutScriptDescriptor, IPutScriptRequest> selector, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServer(IReindexOnServerRequest)
Declaration
public ReindexOnServerResponse ReindexOnServer(IReindexOnServerRequest request)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServer(Func<ReindexOnServerDescriptor, IReindexOnServerRequest>)
Declaration
public ReindexOnServerResponse ReindexOnServer(Func<ReindexOnServerDescriptor, IReindexOnServerRequest> selector)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServerAsync(IReindexOnServerRequest, CancellationToken)
Declaration
public Task<ReindexOnServerResponse> ReindexOnServerAsync(IReindexOnServerRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServerAsync(Func<ReindexOnServerDescriptor, IReindexOnServerRequest>, CancellationToken)
Declaration
public Task<ReindexOnServerResponse> ReindexOnServerAsync(Func<ReindexOnServerDescriptor, IReindexOnServerRequest> selector, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottle(IReindexRethrottleRequest)
Declaration
public ReindexRethrottleResponse ReindexRethrottle(IReindexRethrottleRequest request)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottle(TaskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest>)
Declaration
public ReindexRethrottleResponse ReindexRethrottle(TaskId taskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottleAsync(IReindexRethrottleRequest, CancellationToken)
Declaration
public Task<ReindexRethrottleResponse> ReindexRethrottleAsync(IReindexRethrottleRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottleAsync(TaskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest>, CancellationToken)
Declaration
public Task<ReindexRethrottleResponse> ReindexRethrottleAsync(TaskId taskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Reindex<TSource>(IReindexRequest<TSource>, CancellationToken)
Helper method that allows you to reindex from one index into another using ScrollAll and BulkAll.
Declaration
public IObservable<BulkAllResponse> Reindex<TSource>(IReindexRequest<TSource> request, CancellationToken cancellationToken = default) where TSource : class
Parameters
Returns
Type |
Description |
IObservable<BulkAllResponse> |
An IObservable<ReindexResponse<T>$gt; you can subscribe to to listen to the progress of the reindex process
|
Type Parameters
|
Edit this page
View Source
Reindex<TSource>(IndexName, IndexName, Func<QueryContainerDescriptor<TSource>, QueryContainer>, CancellationToken)
Simplified form for reindex which will cover 80% of its use cases. Allows you to index all documents of type T from
fromIndex
to toIndex
optionally limiting the documents found in fromIndex
by using selector
.
Declaration
public IObservable<BulkAllResponse> Reindex<TSource>(IndexName fromIndex, IndexName toIndex, Func<QueryContainerDescriptor<TSource>, QueryContainer> selector = null, CancellationToken cancellationToken = default) where TSource : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Reindex<TSource>(Func<ReindexDescriptor<TSource, TSource>, IReindexRequest<TSource, TSource>>, CancellationToken)
Helper method that allows you to reindex from one index into another using ScrollAll and BulkAll.
Declaration
public IObservable<BulkAllResponse> Reindex<TSource>(Func<ReindexDescriptor<TSource, TSource>, IReindexRequest<TSource, TSource>> selector, CancellationToken cancellationToken = default) where TSource : class
Parameters
Returns
Type |
Description |
IObservable<BulkAllResponse> |
An IObservable<ReindexResponse<T>$gt; you can subscribe to to listen to the progress of the reindex process
|
Type Parameters
|
Edit this page
View Source
Reindex<TSource, TTarget>(IReindexRequest<TSource, TTarget>, CancellationToken)
Helper method that allows you to reindex from one index into another using ScrollAll and BulkAll.
Declaration
public IObservable<BulkAllResponse> Reindex<TSource, TTarget>(IReindexRequest<TSource, TTarget> request, CancellationToken cancellationToken = default) where TSource : class where TTarget : class
Parameters
Returns
Type |
Description |
IObservable<BulkAllResponse> |
An IObservable<ReindexResponse<T>$gt; you can subscribe to to listen to the progress of the reindex process
|
Type Parameters
Name |
Description |
TSource |
|
TTarget |
|
|
Edit this page
View Source
Reindex<TSource, TTarget>(IndexName, IndexName, Func<TSource, TTarget>, Func<QueryContainerDescriptor<TSource>, QueryContainer>, CancellationToken)
Simplified form for reindex which will cover 80% of its usecases. Allows you to index all documents of type T from
fromIndex
to toIndex
optionally limiting the documents found in fromIndex
by using selector
.
Declaration
public IObservable<BulkAllResponse> Reindex<TSource, TTarget>(IndexName fromIndex, IndexName toIndex, Func<TSource, TTarget> mapper, Func<QueryContainerDescriptor<TSource>, QueryContainer> selector = null, CancellationToken cancellationToken = default) where TSource : class where TTarget : class
Parameters
Type |
Name |
Description |
IndexName |
fromIndex |
The source index, from which all types will be returned
|
IndexName |
toIndex |
The target index, if it does not exist already will be created using the same settings of
fromIndex
|
Func<TSource, TTarget> |
mapper |
|
Func<QueryContainerDescriptor<TSource>, QueryContainer> |
selector |
an optional query limiting the documents found in fromIndex
|
CancellationToken |
cancellationToken |
|
Returns
Type Parameters
Name |
Description |
TSource |
|
TTarget |
|
|
Edit this page
View Source
Reindex<TSource, TTarget>(Func<TSource, TTarget>, Func<ReindexDescriptor<TSource, TTarget>, IReindexRequest<TSource, TTarget>>, CancellationToken)
Helper method that allows you to reindex from one index into another using ScrollAll and BulkAll.
Declaration
public IObservable<BulkAllResponse> Reindex<TSource, TTarget>(Func<TSource, TTarget> mapper, Func<ReindexDescriptor<TSource, TTarget>, IReindexRequest<TSource, TTarget>> selector, CancellationToken cancellationToken = default) where TSource : class where TTarget : class
Parameters
Returns
Type |
Description |
IObservable<BulkAllResponse> |
An IObservable<ReindexResponse<T>$gt; you can subscribe to to listen to the progress of the reindex process
|
Type Parameters
Name |
Description |
TSource |
|
TTarget |
|
|
Edit this page
View Source
RenderSearchTemplate(IRenderSearchTemplateRequest)
Declaration
public RenderSearchTemplateResponse RenderSearchTemplate(IRenderSearchTemplateRequest request)
Parameters
Returns
|
Edit this page
View Source
RenderSearchTemplate(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest>)
Declaration
public RenderSearchTemplateResponse RenderSearchTemplate(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
RenderSearchTemplateAsync(IRenderSearchTemplateRequest, CancellationToken)
Declaration
public Task<RenderSearchTemplateResponse> RenderSearchTemplateAsync(IRenderSearchTemplateRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
RenderSearchTemplateAsync(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest>, CancellationToken)
Declaration
public Task<RenderSearchTemplateResponse> RenderSearchTemplateAsync(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfo(IRootNodeInfoRequest)
Declaration
public RootNodeInfoResponse RootNodeInfo(IRootNodeInfoRequest request)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfo(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest>)
Declaration
public RootNodeInfoResponse RootNodeInfo(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfoAsync(IRootNodeInfoRequest, CancellationToken)
Declaration
public Task<RootNodeInfoResponse> RootNodeInfoAsync(IRootNodeInfoRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfoAsync(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest>, CancellationToken)
Declaration
public Task<RootNodeInfoResponse> RootNodeInfoAsync(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Helper method that can parallelize a scroll using the sliced scroll feature of OpenSearch and return the results as an
IObservable<T>.
Declaration
public IObservable<ScrollAllResponse<T>> ScrollAll<T>(IScrollAllRequest request, CancellationToken cancellationToken = default) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
Helper method that can parallelize a scroll using the sliced scroll feature of OpenSearch, and return the results as an
IObservable<T>.
Declaration
public IObservable<ScrollAllResponse<T>> ScrollAll<T>(Time scrollTime, int numberOfSlices, Func<ScrollAllDescriptor<T>, IScrollAllRequest> selector = null, CancellationToken cancellationToken = default) where T : class
Parameters
Type |
Name |
Description |
Time |
scrollTime |
The time to keep the scroll active on the server until we send another scroll request
|
int |
numberOfSlices |
The number of slices to chop the scroll into, typically the number of shards but can be higher and using a
custom routing key
|
Func<ScrollAllDescriptor<T>, IScrollAllRequest> |
selector |
|
CancellationToken |
cancellationToken |
|
Returns
Type Parameters
|
Edit this page
View Source
Declaration
public Task<ISearchResponse<TDocument>> ScrollAsync<TDocument>(IScrollRequest request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Declaration
public Task<ISearchResponse<TDocument>> ScrollAsync<TDocument>(Time scroll, string scrollId, Func<ScrollDescriptor<TDocument>, IScrollRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Declaration
public Task<ISearchResponse<TDocument>> ScrollAsync<TInferDocument, TDocument>(Time scroll, string scrollId, Func<ScrollDescriptor<TInferDocument>, IScrollRequest> selector = null, CancellationToken ct = default) where TInferDocument : class where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TInferDocument |
|
TDocument |
|
|
Edit this page
View Source
Declaration
public ISearchResponse<TDocument> Scroll<TDocument>(IScrollRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Declaration
public ISearchResponse<TDocument> Scroll<TDocument>(Time scroll, string scrollId, Func<ScrollDescriptor<TDocument>, IScrollRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Declaration
public ISearchResponse<TDocument> Scroll<TInferDocument, TDocument>(Time scroll, string scrollId, Func<ScrollDescriptor<TInferDocument>, IScrollRequest> selector = null) where TInferDocument : class where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TInferDocument |
|
TDocument |
|
|
Edit this page
View Source
SearchAsync<TDocument>(ISearchRequest, CancellationToken)
Declaration
public Task<ISearchResponse<TDocument>> SearchAsync<TDocument>(ISearchRequest request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchAsync<TDocument>(Func<SearchDescriptor<TDocument>, ISearchRequest>, CancellationToken)
Declaration
public Task<ISearchResponse<TDocument>> SearchAsync<TDocument>(Func<SearchDescriptor<TDocument>, ISearchRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchAsync<TInferDocument, TDocument>(Func<SearchDescriptor<TInferDocument>, ISearchRequest>, CancellationToken)
Declaration
public Task<ISearchResponse<TDocument>> SearchAsync<TInferDocument, TDocument>(Func<SearchDescriptor<TInferDocument>, ISearchRequest> selector = null, CancellationToken ct = default) where TInferDocument : class where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TInferDocument |
|
TDocument |
|
|
Edit this page
View Source
SearchShards(ISearchShardsRequest)
Declaration
public SearchShardsResponse SearchShards(ISearchShardsRequest request)
Parameters
Returns
|
Edit this page
View Source
SearchShardsAsync(ISearchShardsRequest, CancellationToken)
Declaration
public Task<SearchShardsResponse> SearchShardsAsync(ISearchShardsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
SearchShardsAsync<TDocument>(Func<SearchShardsDescriptor<TDocument>, ISearchShardsRequest>, CancellationToken)
Declaration
public Task<SearchShardsResponse> SearchShardsAsync<TDocument>(Func<SearchShardsDescriptor<TDocument>, ISearchShardsRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchShards<TDocument>(Func<SearchShardsDescriptor<TDocument>, ISearchShardsRequest>)
Declaration
public SearchShardsResponse SearchShards<TDocument>(Func<SearchShardsDescriptor<TDocument>, ISearchShardsRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchTemplateAsync<TDocument>(ISearchTemplateRequest, CancellationToken)
Declaration
public Task<ISearchResponse<TDocument>> SearchTemplateAsync<TDocument>(ISearchTemplateRequest request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchTemplateAsync<TDocument>(Func<SearchTemplateDescriptor<TDocument>, ISearchTemplateRequest>, CancellationToken)
Declaration
public Task<ISearchResponse<TDocument>> SearchTemplateAsync<TDocument>(Func<SearchTemplateDescriptor<TDocument>, ISearchTemplateRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchTemplate<TDocument>(ISearchTemplateRequest)
Declaration
public ISearchResponse<TDocument> SearchTemplate<TDocument>(ISearchTemplateRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SearchTemplate<TDocument>(Func<SearchTemplateDescriptor<TDocument>, ISearchTemplateRequest>)
Declaration
public ISearchResponse<TDocument> SearchTemplate<TDocument>(Func<SearchTemplateDescriptor<TDocument>, ISearchTemplateRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Search<TDocument>(ISearchRequest)
Declaration
public ISearchResponse<TDocument> Search<TDocument>(ISearchRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Search<TDocument>(Func<SearchDescriptor<TDocument>, ISearchRequest>)
Declaration
public ISearchResponse<TDocument> Search<TDocument>(Func<SearchDescriptor<TDocument>, ISearchRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Search<TInferDocument, TDocument>(Func<SearchDescriptor<TInferDocument>, ISearchRequest>)
Declaration
public ISearchResponse<TDocument> Search<TInferDocument, TDocument>(Func<SearchDescriptor<TInferDocument>, ISearchRequest> selector = null) where TInferDocument : class where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TInferDocument |
|
TDocument |
|
|
Edit this page
View Source
SourceAsync<TDocument>(DocumentPath<TDocument>, Func<SourceDescriptor<TDocument>, ISourceRequest>, CancellationToken)
Declaration
public Task<SourceResponse<TDocument>> SourceAsync<TDocument>(DocumentPath<TDocument> id, Func<SourceDescriptor<TDocument>, ISourceRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SourceAsync<TDocument>(ISourceRequest, CancellationToken)
Declaration
public Task<SourceResponse<TDocument>> SourceAsync<TDocument>(ISourceRequest request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SourceExists(ISourceExistsRequest)
Declaration
public ExistsResponse SourceExists(ISourceExistsRequest request)
Parameters
Returns
|
Edit this page
View Source
SourceExistsAsync(ISourceExistsRequest, CancellationToken)
Declaration
public Task<ExistsResponse> SourceExistsAsync(ISourceExistsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
SourceExistsAsync<TDocument>(DocumentPath<TDocument>, Func<SourceExistsDescriptor<TDocument>, ISourceExistsRequest>, CancellationToken)
Declaration
public Task<ExistsResponse> SourceExistsAsync<TDocument>(DocumentPath<TDocument> id, Func<SourceExistsDescriptor<TDocument>, ISourceExistsRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
SourceExists<TDocument>(DocumentPath<TDocument>, Func<SourceExistsDescriptor<TDocument>, ISourceExistsRequest>)
Declaration
public ExistsResponse SourceExists<TDocument>(DocumentPath<TDocument> id, Func<SourceExistsDescriptor<TDocument>, ISourceExistsRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Source<TDocument>(DocumentPath<TDocument>, Func<SourceDescriptor<TDocument>, ISourceRequest>)
Declaration
public SourceResponse<TDocument> Source<TDocument>(DocumentPath<TDocument> id, Func<SourceDescriptor<TDocument>, ISourceRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Source<TDocument>(ISourceRequest)
Declaration
public SourceResponse<TDocument> Source<TDocument>(ISourceRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
TermVectorsAsync<TDocument>(ITermVectorsRequest<TDocument>, CancellationToken)
Declaration
public Task<TermVectorsResponse> TermVectorsAsync<TDocument>(ITermVectorsRequest<TDocument> request, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
TermVectorsAsync<TDocument>(Func<TermVectorsDescriptor<TDocument>, ITermVectorsRequest<TDocument>>, CancellationToken)
Declaration
public Task<TermVectorsResponse> TermVectorsAsync<TDocument>(Func<TermVectorsDescriptor<TDocument>, ITermVectorsRequest<TDocument>> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
TermVectors<TDocument>(ITermVectorsRequest<TDocument>)
Declaration
public TermVectorsResponse TermVectors<TDocument>(ITermVectorsRequest<TDocument> request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
TermVectors<TDocument>(Func<TermVectorsDescriptor<TDocument>, ITermVectorsRequest<TDocument>>)
Declaration
public TermVectorsResponse TermVectors<TDocument>(Func<TermVectorsDescriptor<TDocument>, ITermVectorsRequest<TDocument>> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
UpdateAsync<TDocument>(DocumentPath<TDocument>, Func<UpdateDescriptor<TDocument, TDocument>, IUpdateRequest<TDocument, TDocument>>, CancellationToken)
Declaration
public Task<UpdateResponse<TDocument>> UpdateAsync<TDocument>(DocumentPath<TDocument> id, Func<UpdateDescriptor<TDocument, TDocument>, IUpdateRequest<TDocument, TDocument>> selector, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
UpdateAsync<TDocument, TPartialDocument>(DocumentPath<TDocument>, Func<UpdateDescriptor<TDocument, TPartialDocument>, IUpdateRequest<TDocument, TPartialDocument>>, CancellationToken)
Declaration
public Task<UpdateResponse<TDocument>> UpdateAsync<TDocument, TPartialDocument>(DocumentPath<TDocument> id, Func<UpdateDescriptor<TDocument, TPartialDocument>, IUpdateRequest<TDocument, TPartialDocument>> selector, CancellationToken ct = default) where TDocument : class where TPartialDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
TPartialDocument |
|
|
Edit this page
View Source
UpdateAsync<TDocument, TPartialDocument>(IUpdateRequest<TDocument, TPartialDocument>, CancellationToken)
Declaration
public Task<UpdateResponse<TDocument>> UpdateAsync<TDocument, TPartialDocument>(IUpdateRequest<TDocument, TPartialDocument> request, CancellationToken ct = default) where TDocument : class where TPartialDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
TPartialDocument |
|
|
Edit this page
View Source
UpdateByQuery(IUpdateByQueryRequest)
Declaration
public UpdateByQueryResponse UpdateByQuery(IUpdateByQueryRequest request)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryAsync(IUpdateByQueryRequest, CancellationToken)
Declaration
public Task<UpdateByQueryResponse> UpdateByQueryAsync(IUpdateByQueryRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryAsync<TDocument>(Func<UpdateByQueryDescriptor<TDocument>, IUpdateByQueryRequest>, CancellationToken)
Declaration
public Task<UpdateByQueryResponse> UpdateByQueryAsync<TDocument>(Func<UpdateByQueryDescriptor<TDocument>, IUpdateByQueryRequest> selector = null, CancellationToken ct = default) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
UpdateByQueryRethrottle(IUpdateByQueryRethrottleRequest)
Declaration
public ListTasksResponse UpdateByQueryRethrottle(IUpdateByQueryRethrottleRequest request)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryRethrottle(TaskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest>)
Declaration
public ListTasksResponse UpdateByQueryRethrottle(TaskId taskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryRethrottleAsync(IUpdateByQueryRethrottleRequest, CancellationToken)
Declaration
public Task<ListTasksResponse> UpdateByQueryRethrottleAsync(IUpdateByQueryRethrottleRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryRethrottleAsync(TaskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest>, CancellationToken)
Declaration
public Task<ListTasksResponse> UpdateByQueryRethrottleAsync(TaskId taskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
UpdateByQuery<TDocument>(Func<UpdateByQueryDescriptor<TDocument>, IUpdateByQueryRequest>)
Declaration
public UpdateByQueryResponse UpdateByQuery<TDocument>(Func<UpdateByQueryDescriptor<TDocument>, IUpdateByQueryRequest> selector = null) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Update<TDocument>(DocumentPath<TDocument>, Func<UpdateDescriptor<TDocument, TDocument>, IUpdateRequest<TDocument, TDocument>>)
Declaration
public UpdateResponse<TDocument> Update<TDocument>(DocumentPath<TDocument> id, Func<UpdateDescriptor<TDocument, TDocument>, IUpdateRequest<TDocument, TDocument>> selector) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Update<TDocument, TPartialDocument>(DocumentPath<TDocument>, Func<UpdateDescriptor<TDocument, TPartialDocument>, IUpdateRequest<TDocument, TPartialDocument>>)
Declaration
public UpdateResponse<TDocument> Update<TDocument, TPartialDocument>(DocumentPath<TDocument> id, Func<UpdateDescriptor<TDocument, TPartialDocument>, IUpdateRequest<TDocument, TPartialDocument>> selector) where TDocument : class where TPartialDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
TPartialDocument |
|
|
Edit this page
View Source
Update<TDocument, TPartialDocument>(IUpdateRequest<TDocument, TPartialDocument>)
Declaration
public UpdateResponse<TDocument> Update<TDocument, TPartialDocument>(IUpdateRequest<TDocument, TPartialDocument> request) where TDocument : class where TPartialDocument : class
Parameters
Type |
Name |
Description |
IUpdateRequest<TDocument, TPartialDocument> |
request |
|
Returns
Type Parameters
Name |
Description |
TDocument |
|
TPartialDocument |
|
Implements
Extension Methods