Interface IOpenSearchClient
OpenSearch high level client
Assembly: OpenSearch.Client.dll
Syntax
public interface IOpenSearchClient
Properties
|
Edit this page
View Source
Cat
Declaration
ICatNamespace Cat { get; }
Property Value
|
Edit this page
View Source
Cluster
Declaration
IClusterNamespace Cluster { get; }
Property Value
|
Edit this page
View Source
ConnectionSettings
The configured connection settings for the client
Declaration
IConnectionSettingsValues ConnectionSettings { get; }
Property Value
|
Edit this page
View Source
DanglingIndices
Declaration
IDanglingIndicesNamespace DanglingIndices { get; }
Property Value
|
Edit this page
View Source
Http
Declaration
IHttpNamespace Http { get; }
Property Value
|
Edit this page
View Source
Indices
Declaration
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
Property Value
|
Edit this page
View Source
Ingest
Declaration
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
IOpenSearchLowLevelClient LowLevel { get; }
Property Value
|
Edit this page
View Source
Nodes
Declaration
INodesNamespace Nodes { get; }
Property Value
|
Edit this page
View Source
RequestResponseSerializer
Declaration
IOpenSearchSerializer RequestResponseSerializer { get; }
Property Value
|
Edit this page
View Source
Snapshot
Declaration
ISnapshotNamespace Snapshot { get; }
Property Value
|
Edit this page
View Source
SourceSerializer
Declaration
IOpenSearchSerializer SourceSerializer { get; }
Property Value
|
Edit this page
View Source
Tasks
Declaration
ITasksNamespace Tasks { get; }
Property Value
Methods
|
Edit this page
View Source
Bulk(IBulkRequest)
Declaration
BulkResponse Bulk(IBulkRequest request)
Parameters
Returns
|
Edit this page
View Source
Bulk(Func<BulkDescriptor, IBulkRequest>)
Declaration
BulkResponse Bulk(Func<BulkDescriptor, IBulkRequest> selector)
Parameters
Returns
|
Edit this page
View Source
BulkAll<T>(IBulkAllRequest<T>, CancellationToken)
Declaration
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
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
Task<BulkResponse> BulkAsync(IBulkRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
BulkAsync(Func<BulkDescriptor, IBulkRequest>, CancellationToken)
Declaration
Task<BulkResponse> BulkAsync(Func<BulkDescriptor, IBulkRequest> selector, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Declaration
ClearScrollResponse ClearScroll(IClearScrollRequest request)
Parameters
Returns
|
Edit this page
View Source
Declaration
ClearScrollResponse ClearScroll(Func<ClearScrollDescriptor, IClearScrollRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
Declaration
Task<ClearScrollResponse> ClearScrollAsync(IClearScrollRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Declaration
Task<ClearScrollResponse> ClearScrollAsync(Func<ClearScrollDescriptor, IClearScrollRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Count(ICountRequest)
Declaration
CountResponse Count(ICountRequest request)
Parameters
Returns
|
Edit this page
View Source
CountAsync(ICountRequest, CancellationToken)
Declaration
Task<CountResponse> CountAsync(ICountRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
CountAsync<TDocument>(Func<CountDescriptor<TDocument>, ICountRequest>, CancellationToken)
Declaration
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
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
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
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
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
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
CreatePitResponse CreatePit(ICreatePitRequest request)
Parameters
Returns
|
Edit this page
View Source
CreatePit(Indices, Func<CreatePitDescriptor, ICreatePitRequest>)
Declaration
CreatePitResponse CreatePit(Indices index, Func<CreatePitDescriptor, ICreatePitRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
CreatePitAsync(ICreatePitRequest, CancellationToken)
Declaration
Task<CreatePitResponse> CreatePitAsync(ICreatePitRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
CreatePitAsync(Indices, Func<CreatePitDescriptor, ICreatePitRequest>, CancellationToken)
Declaration
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
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
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
DeleteResponse Delete(IDeleteRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPits(IDeleteAllPitsRequest)
Declaration
DeleteAllPitsResponse DeleteAllPits(IDeleteAllPitsRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPits(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest>)
Declaration
DeleteAllPitsResponse DeleteAllPits(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPitsAsync(IDeleteAllPitsRequest, CancellationToken)
Declaration
Task<DeleteAllPitsResponse> DeleteAllPitsAsync(IDeleteAllPitsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteAllPitsAsync(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest>, CancellationToken)
Declaration
Task<DeleteAllPitsResponse> DeleteAllPitsAsync(Func<DeleteAllPitsDescriptor, IDeleteAllPitsRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteAsync(IDeleteRequest, CancellationToken)
Declaration
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
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
DeleteByQueryResponse DeleteByQuery(IDeleteByQueryRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryAsync(IDeleteByQueryRequest, CancellationToken)
Declaration
Task<DeleteByQueryResponse> DeleteByQueryAsync(IDeleteByQueryRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryAsync<TDocument>(Func<DeleteByQueryDescriptor<TDocument>, IDeleteByQueryRequest>, CancellationToken)
Declaration
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
ListTasksResponse DeleteByQueryRethrottle(IDeleteByQueryRethrottleRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryRethrottle(TaskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest>)
Declaration
ListTasksResponse DeleteByQueryRethrottle(TaskId taskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryRethrottleAsync(IDeleteByQueryRethrottleRequest, CancellationToken)
Declaration
Task<ListTasksResponse> DeleteByQueryRethrottleAsync(IDeleteByQueryRethrottleRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteByQueryRethrottleAsync(TaskId, Func<DeleteByQueryRethrottleDescriptor, IDeleteByQueryRethrottleRequest>, CancellationToken)
Declaration
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
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
DeletePitResponse DeletePit(IDeletePitRequest request)
Parameters
Returns
|
Edit this page
View Source
DeletePit(Func<DeletePitDescriptor, IDeletePitRequest>)
Declaration
DeletePitResponse DeletePit(Func<DeletePitDescriptor, IDeletePitRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeletePitAsync(IDeletePitRequest, CancellationToken)
Declaration
Task<DeletePitResponse> DeletePitAsync(IDeletePitRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeletePitAsync(Func<DeletePitDescriptor, IDeletePitRequest>, CancellationToken)
Declaration
Task<DeletePitResponse> DeletePitAsync(Func<DeletePitDescriptor, IDeletePitRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteScript(IDeleteScriptRequest)
Declaration
DeleteScriptResponse DeleteScript(IDeleteScriptRequest request)
Parameters
Returns
|
Edit this page
View Source
DeleteScript(Id, Func<DeleteScriptDescriptor, IDeleteScriptRequest>)
Declaration
DeleteScriptResponse DeleteScript(Id id, Func<DeleteScriptDescriptor, IDeleteScriptRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
DeleteScriptAsync(IDeleteScriptRequest, CancellationToken)
Declaration
Task<DeleteScriptResponse> DeleteScriptAsync(IDeleteScriptRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
DeleteScriptAsync(Id, Func<DeleteScriptDescriptor, IDeleteScriptRequest>, CancellationToken)
Declaration
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
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
ExistsResponse DocumentExists(IDocumentExistsRequest request)
Parameters
Returns
|
Edit this page
View Source
DocumentExistsAsync(IDocumentExistsRequest, CancellationToken)
Declaration
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
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
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
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
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
ExecutePainlessScriptResponse<TResult> ExecutePainlessScript<TResult>(IExecutePainlessScriptRequest request)
Parameters
Returns
Type Parameters
|
Edit this page
View Source
ExecutePainlessScript<TResult>(Func<ExecutePainlessScriptDescriptor, IExecutePainlessScriptRequest>)
Declaration
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
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
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
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
ExplainResponse<TDocument> Explain<TDocument>(IExplainRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
FieldCapabilities(IFieldCapabilitiesRequest)
Declaration
FieldCapabilitiesResponse FieldCapabilities(IFieldCapabilitiesRequest request)
Parameters
Returns
|
Edit this page
View Source
FieldCapabilities(Indices, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest>)
Declaration
FieldCapabilitiesResponse FieldCapabilities(Indices index = null, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
FieldCapabilitiesAsync(IFieldCapabilitiesRequest, CancellationToken)
Declaration
Task<FieldCapabilitiesResponse> FieldCapabilitiesAsync(IFieldCapabilitiesRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
FieldCapabilitiesAsync(Indices, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest>, CancellationToken)
Declaration
Task<FieldCapabilitiesResponse> FieldCapabilitiesAsync(Indices index = null, Func<FieldCapabilitiesDescriptor, IFieldCapabilitiesRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetAllPits(IGetAllPitsRequest)
Declaration
GetAllPitsResponse GetAllPits(IGetAllPitsRequest request)
Parameters
Returns
|
Edit this page
View Source
GetAllPits(Func<GetAllPitsDescriptor, IGetAllPitsRequest>)
Declaration
GetAllPitsResponse GetAllPits(Func<GetAllPitsDescriptor, IGetAllPitsRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
GetAllPitsAsync(IGetAllPitsRequest, CancellationToken)
Declaration
Task<GetAllPitsResponse> GetAllPitsAsync(IGetAllPitsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetAllPitsAsync(Func<GetAllPitsDescriptor, IGetAllPitsRequest>, CancellationToken)
Declaration
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
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
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
GetScriptResponse GetScript(IGetScriptRequest request)
Parameters
Returns
|
Edit this page
View Source
GetScript(Id, Func<GetScriptDescriptor, IGetScriptRequest>)
Declaration
GetScriptResponse GetScript(Id id, Func<GetScriptDescriptor, IGetScriptRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
GetScriptAsync(IGetScriptRequest, CancellationToken)
Declaration
Task<GetScriptResponse> GetScriptAsync(IGetScriptRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
GetScriptAsync(Id, Func<GetScriptDescriptor, IGetScriptRequest>, CancellationToken)
Declaration
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
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
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
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
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<T>(T, CancellationToken)
Declaration
Task<IndexResponse> IndexDocumentAsync<T>(T document, CancellationToken ct = default) where T : class
Parameters
Returns
Type Parameters
|
Edit this page
View Source
IndexDocument<TDocument>(TDocument)
Declaration
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
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
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
PutMappingResponse Map(IPutMappingRequest request)
Parameters
Returns
|
Edit this page
View Source
MapAsync(IPutMappingRequest, CancellationToken)
Declaration
Task<PutMappingResponse> MapAsync(IPutMappingRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MapAsync<T>(Func<PutMappingDescriptor<T>, IPutMappingRequest>, CancellationToken)
Declaration
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
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
MultiGetResponse MultiGet(IMultiGetRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiGet(Func<MultiGetDescriptor, IMultiGetRequest>)
Declaration
MultiGetResponse MultiGet(Func<MultiGetDescriptor, IMultiGetRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiGetAsync(IMultiGetRequest, CancellationToken)
Declaration
Task<MultiGetResponse> MultiGetAsync(IMultiGetRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiGetAsync(Func<MultiGetDescriptor, IMultiGetRequest>, CancellationToken)
Declaration
Task<MultiGetResponse> MultiGetAsync(Func<MultiGetDescriptor, IMultiGetRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearch(IMultiSearchRequest)
Declaration
MultiSearchResponse MultiSearch(IMultiSearchRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiSearch(Indices, Func<MultiSearchDescriptor, IMultiSearchRequest>)
Declaration
MultiSearchResponse MultiSearch(Indices index = null, Func<MultiSearchDescriptor, IMultiSearchRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiSearchAsync(IMultiSearchRequest, CancellationToken)
Declaration
Task<MultiSearchResponse> MultiSearchAsync(IMultiSearchRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearchAsync(Indices, Func<MultiSearchDescriptor, IMultiSearchRequest>, CancellationToken)
Declaration
Task<MultiSearchResponse> MultiSearchAsync(Indices index = null, Func<MultiSearchDescriptor, IMultiSearchRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplate(IMultiSearchTemplateRequest)
Declaration
MultiSearchResponse MultiSearchTemplate(IMultiSearchTemplateRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplate(Indices, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest>)
Declaration
MultiSearchResponse MultiSearchTemplate(Indices index = null, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplateAsync(IMultiSearchTemplateRequest, CancellationToken)
Declaration
Task<MultiSearchResponse> MultiSearchTemplateAsync(IMultiSearchTemplateRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiSearchTemplateAsync(Indices, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest>, CancellationToken)
Declaration
Task<MultiSearchResponse> MultiSearchTemplateAsync(Indices index = null, Func<MultiSearchTemplateDescriptor, IMultiSearchTemplateRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectors(IMultiTermVectorsRequest)
Declaration
MultiTermVectorsResponse MultiTermVectors(IMultiTermVectorsRequest request)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectors(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest>)
Declaration
MultiTermVectorsResponse MultiTermVectors(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectorsAsync(IMultiTermVectorsRequest, CancellationToken)
Declaration
Task<MultiTermVectorsResponse> MultiTermVectorsAsync(IMultiTermVectorsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
MultiTermVectorsAsync(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest>, CancellationToken)
Declaration
Task<MultiTermVectorsResponse> MultiTermVectorsAsync(Func<MultiTermVectorsDescriptor, IMultiTermVectorsRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
Ping(IPingRequest)
Declaration
PingResponse Ping(IPingRequest request)
Parameters
Returns
|
Edit this page
View Source
Ping(Func<PingDescriptor, IPingRequest>)
Declaration
PingResponse Ping(Func<PingDescriptor, IPingRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
PingAsync(IPingRequest, CancellationToken)
Declaration
Task<PingResponse> PingAsync(IPingRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
PingAsync(Func<PingDescriptor, IPingRequest>, CancellationToken)
Declaration
Task<PingResponse> PingAsync(Func<PingDescriptor, IPingRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
PutScript(IPutScriptRequest)
Declaration
PutScriptResponse PutScript(IPutScriptRequest request)
Parameters
Returns
|
Edit this page
View Source
PutScript(Id, Func<PutScriptDescriptor, IPutScriptRequest>)
Declaration
PutScriptResponse PutScript(Id id, Func<PutScriptDescriptor, IPutScriptRequest> selector)
Parameters
Returns
|
Edit this page
View Source
PutScriptAsync(IPutScriptRequest, CancellationToken)
Declaration
Task<PutScriptResponse> PutScriptAsync(IPutScriptRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
PutScriptAsync(Id, Func<PutScriptDescriptor, IPutScriptRequest>, CancellationToken)
Declaration
Task<PutScriptResponse> PutScriptAsync(Id id, Func<PutScriptDescriptor, IPutScriptRequest> selector, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServer(IReindexOnServerRequest)
Declaration
ReindexOnServerResponse ReindexOnServer(IReindexOnServerRequest request)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServer(Func<ReindexOnServerDescriptor, IReindexOnServerRequest>)
Declaration
ReindexOnServerResponse ReindexOnServer(Func<ReindexOnServerDescriptor, IReindexOnServerRequest> selector)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServerAsync(IReindexOnServerRequest, CancellationToken)
Declaration
Task<ReindexOnServerResponse> ReindexOnServerAsync(IReindexOnServerRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexOnServerAsync(Func<ReindexOnServerDescriptor, IReindexOnServerRequest>, CancellationToken)
Declaration
Task<ReindexOnServerResponse> ReindexOnServerAsync(Func<ReindexOnServerDescriptor, IReindexOnServerRequest> selector, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottle(IReindexRethrottleRequest)
Declaration
ReindexRethrottleResponse ReindexRethrottle(IReindexRethrottleRequest request)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottle(TaskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest>)
Declaration
ReindexRethrottleResponse ReindexRethrottle(TaskId taskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottleAsync(IReindexRethrottleRequest, CancellationToken)
Declaration
Task<ReindexRethrottleResponse> ReindexRethrottleAsync(IReindexRethrottleRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
ReindexRethrottleAsync(TaskId, Func<ReindexRethrottleDescriptor, IReindexRethrottleRequest>, CancellationToken)
Declaration
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
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
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
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
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
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
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
RenderSearchTemplateResponse RenderSearchTemplate(IRenderSearchTemplateRequest request)
Parameters
Returns
|
Edit this page
View Source
RenderSearchTemplate(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest>)
Declaration
RenderSearchTemplateResponse RenderSearchTemplate(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
RenderSearchTemplateAsync(IRenderSearchTemplateRequest, CancellationToken)
Declaration
Task<RenderSearchTemplateResponse> RenderSearchTemplateAsync(IRenderSearchTemplateRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
RenderSearchTemplateAsync(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest>, CancellationToken)
Declaration
Task<RenderSearchTemplateResponse> RenderSearchTemplateAsync(Func<RenderSearchTemplateDescriptor, IRenderSearchTemplateRequest> selector = null, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfo(IRootNodeInfoRequest)
Declaration
RootNodeInfoResponse RootNodeInfo(IRootNodeInfoRequest request)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfo(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest>)
Declaration
RootNodeInfoResponse RootNodeInfo(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfoAsync(IRootNodeInfoRequest, CancellationToken)
Declaration
Task<RootNodeInfoResponse> RootNodeInfoAsync(IRootNodeInfoRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
RootNodeInfoAsync(Func<RootNodeInfoDescriptor, IRootNodeInfoRequest>, CancellationToken)
Declaration
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
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
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
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
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
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
ISearchResponse<TDocument> Scroll<TDocument>(IScrollRequest request) where TDocument : class
Parameters
Returns
Type Parameters
Name |
Description |
TDocument |
|
|
Edit this page
View Source
Declaration
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
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
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
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
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
SearchShardsResponse SearchShards(ISearchShardsRequest request)
Parameters
Returns
|
Edit this page
View Source
SearchShardsAsync(ISearchShardsRequest, CancellationToken)
Declaration
Task<SearchShardsResponse> SearchShardsAsync(ISearchShardsRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
SearchShardsAsync<TDocument>(Func<SearchShardsDescriptor<TDocument>, ISearchShardsRequest>, CancellationToken)
Declaration
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
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
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
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
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
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
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
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
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
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
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
ExistsResponse SourceExists(ISourceExistsRequest request)
Parameters
Returns
|
Edit this page
View Source
SourceExistsAsync(ISourceExistsRequest, CancellationToken)
Declaration
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
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
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
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
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
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
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
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
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
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
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
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
UpdateByQueryResponse UpdateByQuery(IUpdateByQueryRequest request)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryAsync(IUpdateByQueryRequest, CancellationToken)
Declaration
Task<UpdateByQueryResponse> UpdateByQueryAsync(IUpdateByQueryRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryAsync<TDocument>(Func<UpdateByQueryDescriptor<TDocument>, IUpdateByQueryRequest>, CancellationToken)
Declaration
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
ListTasksResponse UpdateByQueryRethrottle(IUpdateByQueryRethrottleRequest request)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryRethrottle(TaskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest>)
Declaration
ListTasksResponse UpdateByQueryRethrottle(TaskId taskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest> selector = null)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryRethrottleAsync(IUpdateByQueryRethrottleRequest, CancellationToken)
Declaration
Task<ListTasksResponse> UpdateByQueryRethrottleAsync(IUpdateByQueryRethrottleRequest request, CancellationToken ct = default)
Parameters
Returns
|
Edit this page
View Source
UpdateByQueryRethrottleAsync(TaskId, Func<UpdateByQueryRethrottleDescriptor, IUpdateByQueryRethrottleRequest>, CancellationToken)
Declaration
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
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
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
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
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 |
|
Extension Methods