extends |
AbstractNamespace |
---|
Class KnnNamespace
NOTE: This file is autogenerated using util/GenerateEndpoints.php
Methods | ||||
---|---|---|---|---|
public
|
deleteModel(array $params = []): array
Used to delete a particular model in the cluster.
Used to delete a particular model in the cluster. $params['model_id'] = (string) The id of the model. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
getModel(array $params = []): array
Used to retrieve information about models present in the cluster.
Used to retrieve information about models present in the cluster. $params['model_id'] = (string) The id of the model. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
searchModels(array $params = []): array
Use an OpenSearch query to search for models in the index.
Use an OpenSearch query to search for models in the index. $params['_source'] = (array) True or false to return the _source field or not, or a list of fields to return.
$params['_source_excludes'] = (array) List of fields to exclude from the returned _source field.
$params['_source_includes'] = (array) List of fields to extract and return from the _source field.
$params['allow_no_indices'] = (boolean) Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes Parameters
|
# | ||
public
|
stats(array $params = []): array
Provides information about the current status of the k-NN plugin.
Provides information about the current status of the k-NN plugin. $params['node_id'] = (array) Comma-separated list of node IDs or names to limit the returned information; use Parameters
|
# | ||
public
|
trainModel(array $params = []): array
Create and train a model that can be used for initializing k-NN native library indexes during indexing.
Create and train a model that can be used for initializing k-NN native library indexes during indexing. $params['model_id'] = (string) The id of the model. $params['preference'] = (string) Preferred node to execute training. $params['pretty'] = (boolean) Whether to pretty format the returned JSON response. (Default = false) $params['human'] = (boolean) Whether to return human readable values for statistics. (Default = true) $params['error_trace'] = (boolean) Whether to include the stack trace of returned errors. (Default = false) $params['source'] = (string) The URL-encoded request definition. Useful for libraries that do not accept a request body for non-POST requests. $params['filter_path'] = (any) Used to reduce the response. This parameter takes a comma-separated list of filters. It supports using wildcards to match any field or part of a field’s name. You can also exclude fields with "-". Parameters
|
# | ||
public
|
warmup(array $params = []): array
Preloads native library files into memory, reducing initial search latency for specified indexes.
Preloads native library files into memory, reducing initial search latency for specified indexes. $params['index'] = (array) Comma-separated list of indexes; use Parameters
|
# |
Methods inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
__construct(), extractArgument(), performRequest() |
Properties inherited from OpenSearch\Namespaces\AbstractNamespace |
---|
$transport, $endpointFactory, $endpoints |