Class LowLevelKnnNamespace
Knn APIs.
Not intended to be instantiated directly. Use the Knn property on IOpenSearchLowLevelClient.
Inherited Members
Namespace: OpenSearch.Net.Specification.KnnApi
Assembly: OpenSearch.Net.dll
Syntax
public class LowLevelKnnNamespace : NamespacedClientProxy
Methods
| Edit this page View SourceDeleteModelAsync<TResponse>(string, DeleteModelRequestParameters, CancellationToken)
DELETE on /_plugins/_knn/models/{model_id}
https://opensearch.org/docs/latest/search-plugins/knn/api/#delete-model
Declaration
public Task<TResponse> DeleteModelAsync<TResponse>(string modelId, DeleteModelRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The id of the model. |
DeleteModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
DeleteModel<TResponse>(string, DeleteModelRequestParameters)
DELETE on /_plugins/_knn/models/{model_id}
https://opensearch.org/docs/latest/search-plugins/knn/api/#delete-model
Declaration
public TResponse DeleteModel<TResponse>(string modelId, DeleteModelRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The id of the model. |
DeleteModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
GetModelAsync<TResponse>(string, GetModelRequestParameters, CancellationToken)
GET on /_plugins/_knn/models/{model_id}
https://opensearch.org/docs/latest/search-plugins/knn/api/#get-model
Declaration
public Task<TResponse> GetModelAsync<TResponse>(string modelId, GetModelRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The id of the model. |
GetModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
GetModel<TResponse>(string, GetModelRequestParameters)
GET on /_plugins/_knn/models/{model_id}
https://opensearch.org/docs/latest/search-plugins/knn/api/#get-model
Declaration
public TResponse GetModel<TResponse>(string modelId, GetModelRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The id of the model. |
GetModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
SearchModelsAsync<TResponse>(PostData, SearchModelsRequestParameters, CancellationToken)
POST on /_plugins/_knn/models/_search
https://opensearch.org/docs/latest/search-plugins/knn/api/#search-model
Declaration
public Task<TResponse> SearchModelsAsync<TResponse>(PostData body, SearchModelsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
PostData | body | |
SearchModelsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
SearchModels<TResponse>(PostData, SearchModelsRequestParameters)
POST on /_plugins/_knn/models/_search
https://opensearch.org/docs/latest/search-plugins/knn/api/#search-model
Declaration
public TResponse SearchModels<TResponse>(PostData body, SearchModelsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
PostData | body | |
SearchModelsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
StatsAsync<TResponse>(string, StatsRequestParameters, CancellationToken)
GET on /_plugins/_knn/{node_id}/stats
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public Task<TResponse> StatsAsync<TResponse>(string nodeId, StatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | nodeId | Comma-separated list of node IDs or names to limit the returned information; use |
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
StatsAsync<TResponse>(string, string, StatsRequestParameters, CancellationToken)
GET on /_plugins/_knn/{node_id}/stats/{stat}
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public Task<TResponse> StatsAsync<TResponse>(string nodeId, string stat, StatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | nodeId | Comma-separated list of node IDs or names to limit the returned information; use |
string | stat | Comma-separated list of stats to retrieve; use the special string |
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
StatsForAllAsync<TResponse>(StatsRequestParameters, CancellationToken)
GET on /_plugins/_knn/stats
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public Task<TResponse> StatsForAllAsync<TResponse>(StatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
StatsForAllAsync<TResponse>(string, StatsRequestParameters, CancellationToken)
GET on /_plugins/_knn/stats/{stat}
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public Task<TResponse> StatsForAllAsync<TResponse>(string stat, StatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | stat | Comma-separated list of stats to retrieve; use the special string |
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
StatsForAll<TResponse>(StatsRequestParameters)
GET on /_plugins/_knn/stats
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public TResponse StatsForAll<TResponse>(StatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
StatsForAll<TResponse>(string, StatsRequestParameters)
GET on /_plugins/_knn/stats/{stat}
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public TResponse StatsForAll<TResponse>(string stat, StatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | stat | Comma-separated list of stats to retrieve; use the special string |
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
Stats<TResponse>(string, StatsRequestParameters)
GET on /_plugins/_knn/{node_id}/stats
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public TResponse Stats<TResponse>(string nodeId, StatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | nodeId | Comma-separated list of node IDs or names to limit the returned information; use |
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
Stats<TResponse>(string, string, StatsRequestParameters)
GET on /_plugins/_knn/{node_id}/stats/{stat}
https://opensearch.org/docs/latest/search-plugins/knn/api/#stats
Declaration
public TResponse Stats<TResponse>(string nodeId, string stat, StatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | nodeId | Comma-separated list of node IDs or names to limit the returned information; use |
string | stat | Comma-separated list of stats to retrieve; use the special string |
StatsRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
TrainModelAsync<TResponse>(PostData, TrainModelRequestParameters, CancellationToken)
POST on /_plugins/_knn/models/_train
https://opensearch.org/docs/latest/search-plugins/knn/api/#train-model
Declaration
public Task<TResponse> TrainModelAsync<TResponse>(PostData body, TrainModelRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
PostData | body | |
TrainModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
TrainModelAsync<TResponse>(string, PostData, TrainModelRequestParameters, CancellationToken)
POST on /_plugins/_knn/models/{model_id}/_train
https://opensearch.org/docs/latest/search-plugins/knn/api/#train-model
Declaration
public Task<TResponse> TrainModelAsync<TResponse>(string modelId, PostData body, TrainModelRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The id of the model. |
PostData | body | |
TrainModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
TrainModel<TResponse>(PostData, TrainModelRequestParameters)
POST on /_plugins/_knn/models/_train
https://opensearch.org/docs/latest/search-plugins/knn/api/#train-model
Declaration
public TResponse TrainModel<TResponse>(PostData body, TrainModelRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
PostData | body | |
TrainModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
TrainModel<TResponse>(string, PostData, TrainModelRequestParameters)
POST on /_plugins/_knn/models/{model_id}/_train
https://opensearch.org/docs/latest/search-plugins/knn/api/#train-model
Declaration
public TResponse TrainModel<TResponse>(string modelId, PostData body, TrainModelRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | modelId | The id of the model. |
PostData | body | |
TrainModelRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |
WarmupAsync<TResponse>(string, WarmupRequestParameters, CancellationToken)
GET on /_plugins/_knn/warmup/{index}
https://opensearch.org/docs/latest/search-plugins/knn/api/#warmup-operation
Declaration
public Task<TResponse> WarmupAsync<TResponse>(string index, WarmupRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | index | Comma-separated list of indexes; use the special string |
WarmupRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
CancellationToken | ctx |
Returns
Type | Description |
---|---|
Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TResponse |
Warmup<TResponse>(string, WarmupRequestParameters)
GET on /_plugins/_knn/warmup/{index}
https://opensearch.org/docs/latest/search-plugins/knn/api/#warmup-operation
Declaration
public TResponse Warmup<TResponse>(string index, WarmupRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new()
Parameters
Type | Name | Description |
---|---|---|
string | index | Comma-separated list of indexes; use the special string |
WarmupRequestParameters | requestParameters | Request specific configuration such as querystring parameters & request specific connection settings. |
Returns
Type | Description |
---|---|
TResponse |
Type Parameters
Name | Description |
---|---|
TResponse |