Auto-generated code for main (#2127)
This commit is contained in:
@ -101,7 +101,7 @@ client.count({ ... })
|
||||
** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases to search.
|
||||
Supports wildcards (`*`).
|
||||
To search all data streams and indices, omit this parameter or use `*` or `_all`.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
|
||||
This behavior applies even if the request targets other open indices.
|
||||
** *`analyzer` (Optional, string)*: Analyzer to use for the query string.
|
||||
@ -204,7 +204,7 @@ client.deleteByQuery({ index })
|
||||
Supports wildcards (`*`).
|
||||
To search all data streams or indices, omit this parameter or use `*` or `_all`.
|
||||
** *`max_docs` (Optional, number)*: The maximum number of documents to delete.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Specifies the documents to delete using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specifies the documents to delete using the Query DSL.
|
||||
** *`slice` (Optional, { field, id, max })*: Slice the request manually using the provided slice ID and total number of slices.
|
||||
** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
|
||||
This behavior applies even if the request targets other open indices.
|
||||
@ -360,7 +360,7 @@ client.explain({ id, index })
|
||||
** *`id` (string)*: Defines the document ID.
|
||||
** *`index` (string)*: Index names used to limit the request.
|
||||
Only a single index name can be provided to this parameter.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`analyzer` (Optional, string)*: Analyzer to use for the query string.
|
||||
This parameter can only be used when the `q` query string parameter is specified.
|
||||
** *`analyze_wildcard` (Optional, boolean)*: If `true`, wildcard and prefix queries are analyzed.
|
||||
@ -391,7 +391,7 @@ client.fieldCaps({ ... })
|
||||
* *Request (object):*
|
||||
** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.
|
||||
** *`fields` (Optional, string | string[])*: List of fields to retrieve capabilities for. Wildcard (`*`) expressions are supported.
|
||||
** *`index_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Allows to filter indices if the provided query rewrites to match_none on every shard.
|
||||
** *`index_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Allows to filter indices if the provided query rewrites to match_none on every shard.
|
||||
** *`runtime_mappings` (Optional, Record<string, { fetch_fields, format, input_field, target_field, target_index, script, type }>)*: Defines ad-hoc runtime fields in the request similar to the way it is done in search requests.
|
||||
These fields exist only as part of the query and take precedence over fields defined with the same name in the index mappings.
|
||||
** *`allow_no_indices` (Optional, boolean)*: If false, the request returns an error if any wildcard expression, index alias,
|
||||
@ -402,6 +402,7 @@ targeting `foo*,bar*` returns an error if an index starts with foo but no index
|
||||
** *`include_unmapped` (Optional, boolean)*: If true, unmapped fields are included in the response.
|
||||
** *`filters` (Optional, string)*: An optional set of filters: can include +metadata,-metadata,-nested,-multifield,-parent
|
||||
** *`types` (Optional, string[])*: Only return results for fields that have one of the types in the list
|
||||
** *`include_empty_fields` (Optional, boolean)*: If false, empty fields are not included in the response.
|
||||
|
||||
[discrete]
|
||||
=== get
|
||||
@ -585,7 +586,7 @@ parameter defaults to false. You can pass _source: true to return both source fi
|
||||
and stored fields in the search response.
|
||||
** *`fields` (Optional, string | string[])*: The request returns values for field names matching these patterns
|
||||
in the hits.fields property of the response. Accepts wildcard (*) patterns.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type } | { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type }[])*: Query to filter the documents that can match. The kNN search will return the top
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type } | { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type }[])*: Query to filter the documents that can match. The kNN search will return the top
|
||||
`k` documents that also match this filter. The value can be a single query or a
|
||||
list of queries. If `filter` isn't provided, all documents are allowed to match.
|
||||
** *`routing` (Optional, string)*: A list of specific routing values
|
||||
@ -917,16 +918,16 @@ If `false`, the response does not include the total number of hits matching the
|
||||
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
|
||||
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (`*`) patterns.
|
||||
The request returns doc values for field names matching these patterns in the `hits.fields` property of the response.
|
||||
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity }[])*: Defines the approximate kNN search to run.
|
||||
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity, inner_hits } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity, inner_hits }[])*: Defines the approximate kNN search to run.
|
||||
** *`rank` (Optional, { rrf })*: Defines the Reciprocal Rank Fusion (RRF) to use.
|
||||
** *`min_score` (Optional, number)*: Minimum `_score` for matching documents.
|
||||
Documents with a lower `_score` are not included in the search results.
|
||||
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Use the `post_filter` parameter to filter search results.
|
||||
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Use the `post_filter` parameter to filter search results.
|
||||
The search hits are filtered after the aggregations are calculated.
|
||||
A post filter has no impact on the aggregation results.
|
||||
** *`profile` (Optional, boolean)*: Set to `true` to return detailed timing information about the execution of individual components in a search request.
|
||||
NOTE: This is a debugging tool and adds significant overhead to search execution.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`rescore` (Optional, { query, window_size } | { query, window_size }[])*: Can be used to improve precision by reordering just the top (for example 100 - 500) documents returned by the `query` and `post_filter` phases.
|
||||
** *`script_fields` (Optional, Record<string, { script, ignore_failure }>)*: Retrieve a script evaluation (based on different fields) for each hit.
|
||||
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: Used to retrieve the next page of hits using a set of sort values from the previous page.
|
||||
@ -1076,7 +1077,7 @@ don’t include the aggs layer.
|
||||
each feature represents a geotile_grid cell. If 'grid' each feature is a Polygon
|
||||
of the cells bounding box. If 'point' each feature is a Point that is the centroid
|
||||
of the cell.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Query DSL used to filter documents for the search.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Query DSL used to filter documents for the search.
|
||||
** *`runtime_mappings` (Optional, Record<string, { fetch_fields, format, input_field, target_field, target_index, script, type }>)*: Defines one or more runtime fields in the search request. These fields take
|
||||
precedence over mapped fields with the same name.
|
||||
** *`size` (Optional, number)*: Maximum number of features to return in the hits layer. Accepts 0-10000.
|
||||
@ -1179,7 +1180,7 @@ client.termsEnum({ index, field })
|
||||
** *`size` (Optional, number)*: How many matching terms to return.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty.
|
||||
** *`case_insensitive` (Optional, boolean)*: When true the provided search string is matched against index terms without case sensitivity.
|
||||
** *`index_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Allows to filter an index shard if the provided query rewrites to match_none.
|
||||
** *`index_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Allows to filter an index shard if the provided query rewrites to match_none.
|
||||
** *`string` (Optional, string)*: The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request.
|
||||
** *`search_after` (Optional, string)*
|
||||
|
||||
@ -1260,7 +1261,8 @@ Set to 'all' or any positive integer up to the total number of shards in the ind
|
||||
|
||||
[discrete]
|
||||
=== update_by_query
|
||||
Performs an update on every document in the index without changing the source,
|
||||
Updates documents that match the specified query. If no query is specified,
|
||||
performs an update on every document in the index without changing the source,
|
||||
for example to pick up a mapping change.
|
||||
|
||||
{ref}/docs-update-by-query.html[Endpoint documentation]
|
||||
@ -1276,7 +1278,7 @@ client.updateByQuery({ index })
|
||||
Supports wildcards (`*`).
|
||||
To search all data streams or indices, omit this parameter or use `*` or `_all`.
|
||||
** *`max_docs` (Optional, number)*: The maximum number of documents to update.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Specifies the documents to update using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specifies the documents to update using the Query DSL.
|
||||
** *`script` (Optional, { lang, options, source } | { id })*: The script to run to update the document source or metadata when updating.
|
||||
** *`slice` (Optional, { field, id, max })*: Slice the request manually using the provided slice ID and total number of slices.
|
||||
** *`conflicts` (Optional, Enum("abort" | "proceed"))*: What to do if update by query hits version conflicts: `abort` or `proceed`.
|
||||
@ -1429,12 +1431,12 @@ Defaults to 10,000 hits.
|
||||
** *`indices_boost` (Optional, Record<string, number>[])*: Boosts the _score of documents from specified indices.
|
||||
** *`docvalue_fields` (Optional, { field, format, include_unmapped }[])*: Array of wildcard (*) patterns. The request returns doc values for field
|
||||
names matching these patterns in the hits.fields property of the response.
|
||||
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity }[])*: Defines the approximate kNN search to run.
|
||||
** *`knn` (Optional, { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity, inner_hits } | { field, query_vector, query_vector_builder, k, num_candidates, boost, filter, similarity, inner_hits }[])*: Defines the approximate kNN search to run.
|
||||
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
|
||||
not included in the search results.
|
||||
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*
|
||||
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*
|
||||
** *`profile` (Optional, boolean)*
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`rescore` (Optional, { query, window_size } | { query, window_size }[])*
|
||||
** *`script_fields` (Optional, Record<string, { script, ignore_failure }>)*: Retrieve a script evaluation (based on different fields) for each hit.
|
||||
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*
|
||||
@ -2783,7 +2785,7 @@ client.eql.search({ index, query })
|
||||
** *`tiebreaker_field` (Optional, string)*: Field used to sort hits with the same timestamp in ascending order
|
||||
** *`timestamp_field` (Optional, string)*: Field containing event timestamp. Default "@timestamp"
|
||||
** *`fetch_size` (Optional, number)*: Maximum number of events to search at a time for sequence queries.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type } | { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type }[])*: Query, written in Query DSL, used to filter the events on which the EQL query runs.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type } | { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type }[])*: Query, written in Query DSL, used to filter the events on which the EQL query runs.
|
||||
** *`keep_alive` (Optional, string | -1 | 0)*
|
||||
** *`keep_on_completion` (Optional, boolean)*
|
||||
** *`wait_for_completion_timeout` (Optional, string | -1 | 0)*
|
||||
@ -2795,6 +2797,30 @@ client.eql.search({ index, query })
|
||||
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*
|
||||
** *`ignore_unavailable` (Optional, boolean)*: If true, missing or closed indices are not included in the response.
|
||||
|
||||
[discrete]
|
||||
=== esql
|
||||
[discrete]
|
||||
==== query
|
||||
Executes an ESQL request
|
||||
|
||||
{ref}/esql-rest.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.esql.query({ query })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`query` (string)*: The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.
|
||||
** *`columnar` (Optional, boolean)*: By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.
|
||||
** *`locale` (Optional, string)*
|
||||
** *`params` (Optional, number | number | string | boolean | null[])*: To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.
|
||||
** *`format` (Optional, string)*: A short version of the Accept header, e.g. json, yaml.
|
||||
** *`delimiter` (Optional, string)*: The character to use between values within a CSV row. Only valid for the CSV format.
|
||||
|
||||
[discrete]
|
||||
=== features
|
||||
[discrete]
|
||||
@ -2907,9 +2933,9 @@ Defaults to 10,000 hits.
|
||||
names matching these patterns in the hits.fields property of the response.
|
||||
** *`min_score` (Optional, number)*: Minimum _score for matching documents. Documents with a lower _score are
|
||||
not included in the search results.
|
||||
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*
|
||||
** *`post_filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*
|
||||
** *`profile` (Optional, boolean)*
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Defines the search definition using the Query DSL.
|
||||
** *`rescore` (Optional, { query, window_size } | { query, window_size }[])*
|
||||
** *`script_fields` (Optional, Record<string, { script, ignore_failure }>)*: Retrieve a script evaluation (based on different fields) for each hit.
|
||||
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*
|
||||
@ -2998,7 +3024,7 @@ client.graph.explore({ index })
|
||||
** *`index` (string | string[])*: Name of the index.
|
||||
** *`connections` (Optional, { connections, query, vertices })*: Specifies or more fields from which you want to extract terms that are associated with the specified vertices.
|
||||
** *`controls` (Optional, { sample_diversity, sample_size, timeout, use_significance })*: Direct the Graph API how to build the graph.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: A seed query that identifies the documents of interest. Can be any valid Elasticsearch query.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: A seed query that identifies the documents of interest. Can be any valid Elasticsearch query.
|
||||
** *`vertices` (Optional, { exclude, field, include, min_doc_count, shard_min_doc_count, size }[])*: Specifies one or more fields that contain the terms you want to include in the graph as vertices.
|
||||
** *`routing` (Optional, string)*: Custom value used to route operations to a specific shard.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: Specifies the period of time to wait for a response from each shard.
|
||||
@ -3245,7 +3271,7 @@ This could be a built-in analyzer, or an analyzer that’s been configured in th
|
||||
** *`field` (Optional, string)*: Field used to derive the analyzer.
|
||||
To use this parameter, you must specify an index.
|
||||
If specified, the `analyzer` parameter overrides this value.
|
||||
** *`filter` (Optional, string | { type, preserve_original } | { type, common_words, common_words_path, ignore_case, query_mode } | { type, filter, script } | { type, delimiter, encoding } | { type, max_gram, min_gram, side, preserve_original } | { type, articles, articles_path, articles_case } | { type, max_output_size, separator } | { type, dedup, dictionary, locale, longest_only } | { type } | { type, mode, types } | { type, keep_words, keep_words_case, keep_words_path } | { type, ignore_case, keywords, keywords_path, keywords_pattern } | { type } | { type, max, min } | { type, consume_all_tokens, max_token_count } | { type, language } | { type, filters, preserve_original } | { type, max_gram, min_gram, preserve_original } | { type, stoptags } | { type, patterns, preserve_original } | { type, all, flags, pattern, replacement } | { type } | { type, script } | { type } | { type } | { type, filler_token, max_shingle_size, min_shingle_size, output_unigrams, output_unigrams_if_no_shingles, token_separator } | { type, language } | { type, rules, rules_path } | { type, language } | { type, ignore_case, remove_trailing, stopwords, stopwords_path } | { type, expand, format, lenient, synonyms, synonyms_path, tokenizer, updateable } | { type, expand, format, lenient, synonyms, synonyms_path, tokenizer, updateable } | { type } | { type, length } | { type, only_on_same_position } | { type } | { type, adjust_offsets, catenate_all, catenate_numbers, catenate_words, generate_number_parts, generate_word_parts, ignore_keywords, preserve_original, protected_words, protected_words_path, split_on_case_change, split_on_numerics, stem_english_possessive, type_table, type_table_path } | { type, catenate_all, catenate_numbers, catenate_words, generate_number_parts, generate_word_parts, preserve_original, protected_words, protected_words_path, split_on_case_change, split_on_numerics, stem_english_possessive, type_table, type_table_path } | { type, minimum_length } | { type, use_romaji } | { type, stoptags } | { type, rule_files } | { type, alternate, caseFirst, caseLevel, country, decomposition, hiraganaQuaternaryMode, language, numeric, rules, strength, variableTop, variant } | { type, unicode_set_filter } | { type, name } | { type, dir, id } | { type, encoder, languageset, max_code_len, name_type, replace, rule_type } | { type }[])*: Array of token filters used to apply after the tokenizer.
|
||||
** *`filter` (Optional, string | { type, preserve_original } | { type, common_words, common_words_path, ignore_case, query_mode } | { type, filter, script } | { type, delimiter, encoding } | { type, max_gram, min_gram, side, preserve_original } | { type, articles, articles_path, articles_case } | { type, max_output_size, separator } | { type, dedup, dictionary, locale, longest_only } | { type } | { type, mode, types } | { type, keep_words, keep_words_case, keep_words_path } | { type, ignore_case, keywords, keywords_path, keywords_pattern } | { type } | { type, max, min } | { type, consume_all_tokens, max_token_count } | { type, language } | { type, filters, preserve_original } | { type, max_gram, min_gram, preserve_original } | { type, stoptags } | { type, patterns, preserve_original } | { type, all, flags, pattern, replacement } | { type } | { type, script } | { type } | { type } | { type, filler_token, max_shingle_size, min_shingle_size, output_unigrams, output_unigrams_if_no_shingles, token_separator } | { type, language } | { type, rules, rules_path } | { type, language } | { type, ignore_case, remove_trailing, stopwords, stopwords_path } | { type, expand, format, lenient, synonyms, synonyms_path, tokenizer, updateable } | { type, expand, format, lenient, synonyms, synonyms_path, tokenizer, updateable } | { type } | { type, length } | { type, only_on_same_position } | { type } | { type, adjust_offsets, catenate_all, catenate_numbers, catenate_words, generate_number_parts, generate_word_parts, ignore_keywords, preserve_original, protected_words, protected_words_path, split_on_case_change, split_on_numerics, stem_english_possessive, type_table, type_table_path } | { type, catenate_all, catenate_numbers, catenate_words, generate_number_parts, generate_word_parts, preserve_original, protected_words, protected_words_path, split_on_case_change, split_on_numerics, stem_english_possessive, type_table, type_table_path } | { type, minimum_length } | { type, use_romaji } | { type, stoptags } | { type, alternate, caseFirst, caseLevel, country, decomposition, hiraganaQuaternaryMode, language, numeric, rules, strength, variableTop, variant } | { type, unicode_set_filter } | { type, name } | { type, dir, id } | { type, encoder, languageset, max_code_len, name_type, replace, rule_type } | { type }[])*: Array of token filters used to apply after the tokenizer.
|
||||
** *`normalizer` (Optional, string)*: Normalizer to use to convert text into a single token.
|
||||
** *`text` (Optional, string | string[])*: Text to analyze.
|
||||
If an array of strings is provided, it is analyzed as a multi-value field.
|
||||
@ -3355,7 +3381,7 @@ client.indices.create({ index })
|
||||
- Field names
|
||||
- Field data types
|
||||
- Mapping parameters
|
||||
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, shards, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*: Configuration options for the index.
|
||||
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*: Configuration options for the index.
|
||||
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node.
|
||||
If no response is received before the timeout expires, the request fails and returns an error.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response.
|
||||
@ -3497,7 +3523,7 @@ client.indices.deleteDataStream({ name })
|
||||
==== delete_index_template
|
||||
Deletes an index template.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-delete-template.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.deleteIndexTemplate({ name })
|
||||
@ -3515,7 +3541,7 @@ client.indices.deleteIndexTemplate({ name })
|
||||
==== delete_template
|
||||
Deletes an index template.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-delete-template-v1.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.deleteTemplate({ name })
|
||||
@ -3634,7 +3660,7 @@ Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
|
||||
==== exists_index_template
|
||||
Returns information about whether a particular index template exists.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/index-templates.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.existsIndexTemplate({ name })
|
||||
@ -3651,7 +3677,7 @@ client.indices.existsIndexTemplate({ name })
|
||||
==== exists_template
|
||||
Returns information about whether a particular index template exists.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-template-exists-v1.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.existsTemplate({ name })
|
||||
@ -3897,7 +3923,7 @@ Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
|
||||
==== get_index_template
|
||||
Returns an index template.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-get-template.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.getIndexTemplate({ ... })
|
||||
@ -3980,7 +4006,7 @@ error.
|
||||
==== get_template
|
||||
Returns an index template.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-get-template-v1.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.getTemplate({ ... })
|
||||
@ -4099,7 +4125,7 @@ Wildcard patterns that match both data streams and indices return an error.
|
||||
** *`name` (string)*: Alias to update.
|
||||
If the alias doesn’t exist, the request creates it.
|
||||
Index alias names support date math.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Query used to limit documents the alias can access.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Query used to limit documents the alias can access.
|
||||
** *`index_routing` (Optional, string)*: Value used to route indexing operations to a specific shard.
|
||||
If specified, this overwrites the `routing` value for indexing operations.
|
||||
Data stream aliases don’t support this parameter.
|
||||
@ -4152,7 +4178,7 @@ If no response is received before the timeout expires, the request fails and ret
|
||||
==== put_index_template
|
||||
Creates or updates an index template.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-put-template.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.putIndexTemplate({ name })
|
||||
@ -4208,7 +4234,7 @@ a new date field is added instead of string.
|
||||
not used at all by Elasticsearch, but can be used to store
|
||||
application-specific metadata.
|
||||
** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields.
|
||||
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, time_series_dimension, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type, null_value } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, time_series_dimension, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
|
||||
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, time_series_dimension, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type, null_value } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, time_series_dimension, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
|
||||
|
||||
- Field name
|
||||
- Field data type
|
||||
@ -4246,7 +4272,7 @@ client.indices.putSettings({ ... })
|
||||
** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases used to limit
|
||||
the request. Supports wildcards (`*`). To target all data streams and
|
||||
indices, omit this parameter or use `*` or `_all`.
|
||||
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, shards, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*
|
||||
** *`settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*
|
||||
** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index
|
||||
alias, or `_all` value targets only missing or closed indices. This
|
||||
behavior applies even if the request targets other open indices. For
|
||||
@ -4269,7 +4295,7 @@ error.
|
||||
==== put_template
|
||||
Creates or updates an index template.
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-templates-v1.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.putTemplate({ name })
|
||||
@ -4363,6 +4389,32 @@ client.indices.reloadSearchAnalyzers({ index })
|
||||
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Whether to expand wildcard expression to concrete indices that are open, closed or both.
|
||||
** *`ignore_unavailable` (Optional, boolean)*: Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
||||
|
||||
[discrete]
|
||||
==== resolve_cluster
|
||||
Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.
|
||||
|
||||
{ref}/indices-resolve-cluster-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.resolveCluster({ name })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`name` (string | string[])*: Comma-separated name(s) or index pattern(s) of the indices, aliases, and data streams to resolve.
|
||||
Resources on remote clusters can be specified using the `<cluster>`:`<name>` syntax.
|
||||
** *`allow_no_indices` (Optional, boolean)*: If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing
|
||||
or closed indices. This behavior applies even if the request targets other open indices. For example, a request
|
||||
targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar.
|
||||
** *`expand_wildcards` (Optional, Enum("all" | "open" | "closed" | "hidden" | "none") | Enum("all" | "open" | "closed" | "hidden" | "none")[])*: Type of index that wildcard patterns can match.
|
||||
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
|
||||
Supports a list of values, such as `open,hidden`.
|
||||
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
|
||||
** *`ignore_throttled` (Optional, boolean)*: If true, concrete, expanded or aliased indices are ignored when frozen. Defaults to false.
|
||||
** *`ignore_unavailable` (Optional, boolean)*: If false, the request returns an error if it targets a missing or closed index. Defaults to false.
|
||||
|
||||
[discrete]
|
||||
==== resolve_index
|
||||
Returns information about any matching indices, aliases, and data streams
|
||||
@ -4501,7 +4553,7 @@ Set to `all` or any positive integer up to the total number of shards in the ind
|
||||
==== simulate_index_template
|
||||
Simulate matching the given index name against the index templates in the system
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-simulate-index.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.simulateIndexTemplate({ name })
|
||||
@ -4545,7 +4597,7 @@ before the timeout expires, the request fails and returns an error.
|
||||
==== simulate_template
|
||||
Simulate resolving the given template name or body
|
||||
|
||||
{ref}/indices-templates.html[Endpoint documentation]
|
||||
{ref}/indices-simulate-template.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.simulateTemplate({ ... })
|
||||
@ -4681,7 +4733,7 @@ client.indices.validateQuery({ ... })
|
||||
** *`index` (Optional, string | string[])*: List of data streams, indices, and aliases to search.
|
||||
Supports wildcards (`*`).
|
||||
To search all data streams or indices, omit this parameter or use `*` or `_all`.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Query in the Lucene query string syntax.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Query in the Lucene query string syntax.
|
||||
** *`allow_no_indices` (Optional, boolean)*: If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
|
||||
This behavior applies even if the request targets other open indices.
|
||||
** *`all_shards` (Optional, boolean)*: If `true`, the validation is executed on all shards instead of one random shard per index.
|
||||
@ -4701,6 +4753,80 @@ Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
|
||||
** *`rewrite` (Optional, boolean)*: If `true`, returns a more detailed explanation showing the actual Lucene query that will be executed.
|
||||
** *`q` (Optional, string)*: Query in the Lucene query string syntax.
|
||||
|
||||
[discrete]
|
||||
=== inference
|
||||
[discrete]
|
||||
==== delete_model
|
||||
Delete model in the Inference API
|
||||
|
||||
{ref}/delete-inference-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.inference.deleteModel({ inference_id })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`inference_id` (string)*: The inference Id
|
||||
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding"))*: The task type
|
||||
|
||||
[discrete]
|
||||
==== get_model
|
||||
Get a model in the Inference API
|
||||
|
||||
{ref}/get-inference-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.inference.getModel({ inference_id })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`inference_id` (string)*: The inference Id
|
||||
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding"))*: The task type
|
||||
|
||||
[discrete]
|
||||
==== inference
|
||||
Perform inference on a model
|
||||
|
||||
{ref}/post-inference-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.inference.inference({ inference_id, input })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`inference_id` (string)*: The inference Id
|
||||
** *`input` (string | string[])*: Text input to the model.
|
||||
Either a string or an array of strings.
|
||||
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding"))*: The task type
|
||||
** *`task_settings` (Optional, User-defined value)*: Optional task settings
|
||||
|
||||
[discrete]
|
||||
==== put_model
|
||||
Configure a model for use in the Inference API
|
||||
|
||||
{ref}/put-inference-api.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.inference.putModel({ inference_id })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`inference_id` (string)*: The inference Id
|
||||
** *`task_type` (Optional, Enum("sparse_embedding" | "text_embedding"))*: The task type
|
||||
** *`model_config` (Optional, { service, service_settings, task_settings })*
|
||||
|
||||
[discrete]
|
||||
=== ingest
|
||||
[discrete]
|
||||
@ -4784,8 +4910,8 @@ client.ingest.putPipeline({ id })
|
||||
** *`id` (string)*: ID of the ingest pipeline to create or update.
|
||||
** *`_meta` (Optional, Record<string, User-defined value>)*: Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch.
|
||||
** *`description` (Optional, string)*: Description of the ingest pipeline.
|
||||
** *`on_failure` (Optional, { attachment, append, csv, convert, date, date_index_name, dot_expander, enrich, fail, foreach, json, user_agent, kv, geoip, grok, gsub, join, lowercase, remove, rename, script, set, sort, split, trim, uppercase, urldecode, bytes, dissect, set_security_user, pipeline, drop, circle, inference }[])*: Processors to run immediately after a processor failure. Each processor supports a processor-level `on_failure` value. If a processor without an `on_failure` value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors.
|
||||
** *`processors` (Optional, { attachment, append, csv, convert, date, date_index_name, dot_expander, enrich, fail, foreach, json, user_agent, kv, geoip, grok, gsub, join, lowercase, remove, rename, script, set, sort, split, trim, uppercase, urldecode, bytes, dissect, set_security_user, pipeline, drop, circle, inference }[])*: Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.
|
||||
** *`on_failure` (Optional, { attachment, append, csv, convert, date, date_index_name, dot_expander, enrich, fail, foreach, json, user_agent, kv, geoip, grok, gsub, join, lowercase, remove, rename, reroute, script, set, sort, split, trim, uppercase, urldecode, bytes, dissect, set_security_user, pipeline, drop, circle, inference }[])*: Processors to run immediately after a processor failure. Each processor supports a processor-level `on_failure` value. If a processor without an `on_failure` value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors.
|
||||
** *`processors` (Optional, { attachment, append, csv, convert, date, date_index_name, dot_expander, enrich, fail, foreach, json, user_agent, kv, geoip, grok, gsub, join, lowercase, remove, rename, reroute, script, set, sort, split, trim, uppercase, urldecode, bytes, dissect, set_security_user, pipeline, drop, circle, inference }[])*: Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.
|
||||
** *`version` (Optional, number)*: Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers.
|
||||
** *`master_timeout` (Optional, string | -1 | 0)*: Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
|
||||
** *`timeout` (Optional, string | -1 | 0)*: Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
|
||||
@ -4808,7 +4934,7 @@ client.ingest.simulate({ ... })
|
||||
** *`id` (Optional, string)*: Pipeline to test.
|
||||
If you don’t specify a `pipeline` in the request body, this parameter is required.
|
||||
** *`docs` (Optional, { _id, _index, _source }[])*: Sample documents to test in the pipeline.
|
||||
** *`pipeline` (Optional, { description, on_failure, processors, version })*: Pipeline to test.
|
||||
** *`pipeline` (Optional, { description, on_failure, processors, version, _meta })*: Pipeline to test.
|
||||
If you don’t specify the `pipeline` request path parameter, this parameter is required.
|
||||
If you specify both this and the request path parameter, the API only uses the request path parameter.
|
||||
** *`verbose` (Optional, boolean)*: If `true`, the response includes output data for each processor in the executed pipeline.
|
||||
@ -4966,7 +5092,7 @@ client.logstash.putPipeline({ id })
|
||||
|
||||
* *Request (object):*
|
||||
** *`id` (string)*: Identifier for the pipeline.
|
||||
** *`pipeline` (Optional, { description, on_failure, processors, version })*
|
||||
** *`pipeline` (Optional, { description, on_failure, processors, version, _meta })*
|
||||
|
||||
[discrete]
|
||||
=== migration
|
||||
@ -5317,7 +5443,7 @@ client.ml.evaluateDataFrame({ evaluation, index })
|
||||
* *Request (object):*
|
||||
** *`evaluation` ({ classification, outlier_detection, regression })*: Defines the type of evaluation you want to perform.
|
||||
** *`index` (string)*: Defines the `index` in which the evaluation will be performed.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: A query clause that retrieves a subset of data from the source index.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: A query clause that retrieves a subset of data from the source index.
|
||||
|
||||
[discrete]
|
||||
==== explain_data_frame_analytics
|
||||
@ -6201,7 +6327,7 @@ learning nodes must have the `remote_cluster_client` role.
|
||||
stops and closes the associated job after this many real-time searches return no documents. In other words,
|
||||
it stops after `frequency` times `max_empty_searches` of real-time operation. If not set, a datafeed with no
|
||||
end time that sees no data remains started until it is explicitly stopped. By default, it is not set.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an
|
||||
Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this
|
||||
object is passed verbatim to Elasticsearch.
|
||||
** *`query_delay` (Optional, string | -1 | 0)*: The number of seconds behind real time that data is queried. For example, if data from 10:04 a.m. might
|
||||
@ -6654,7 +6780,7 @@ learning nodes must have the `remote_cluster_client` role.
|
||||
stops and closes the associated job after this many real-time searches return no documents. In other words,
|
||||
it stops after `frequency` times `max_empty_searches` of real-time operation. If not set, a datafeed with no
|
||||
end time that sees no data remains started until it is explicitly stopped. By default, it is not set.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: The Elasticsearch query domain-specific language (DSL). This value corresponds to the query object in an
|
||||
Elasticsearch search POST body. All the options that are supported by Elasticsearch can be used, as this
|
||||
object is passed verbatim to Elasticsearch. Note that if you change the query, the analyzed data is also
|
||||
changed. Therefore, the time required to learn might be long and the understandability of the results is
|
||||
@ -7165,7 +7291,7 @@ client.rollup.rollupSearch({ index })
|
||||
* *Request (object):*
|
||||
** *`index` (string | string[])*: Enables searching rolled-up data using the standard Query DSL.
|
||||
** *`aggregations` (Optional, Record<string, { aggregations, meta, adjacency_matrix, auto_date_histogram, avg, avg_bucket, boxplot, bucket_script, bucket_selector, bucket_sort, bucket_count_ks_test, bucket_correlation, cardinality, categorize_text, children, composite, cumulative_cardinality, cumulative_sum, date_histogram, date_range, derivative, diversified_sampler, extended_stats, extended_stats_bucket, frequent_item_sets, filter, filters, geo_bounds, geo_centroid, geo_distance, geohash_grid, geo_line, geotile_grid, geohex_grid, global, histogram, ip_range, ip_prefix, inference, line, matrix_stats, max, max_bucket, median_absolute_deviation, min, min_bucket, missing, moving_avg, moving_percentiles, moving_fn, multi_terms, nested, normalize, parent, percentile_ranks, percentiles, percentiles_bucket, range, rare_terms, rate, reverse_nested, sampler, scripted_metric, serial_diff, significant_terms, significant_text, stats, stats_bucket, string_stats, sum, sum_bucket, terms, top_hits, t_test, top_metrics, value_count, weighted_avg, variable_width_histogram }>)*: Specifies aggregations.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Specifies a DSL query.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Specifies a DSL query.
|
||||
** *`size` (Optional, number)*: Must be zero if set, as rollups work on pre-aggregated data.
|
||||
** *`rest_total_hits_as_int` (Optional, boolean)*: Indicates whether hits.total should be rendered as an integer or an object in the rest search response
|
||||
** *`typed_keys` (Optional, boolean)*: Specify whether aggregation and suggester names should be prefixed by their respective types in the response
|
||||
@ -7212,7 +7338,7 @@ If set to `false`, the API returns immediately and the indexer is stopped asynch
|
||||
==== delete
|
||||
Deletes a search application.
|
||||
|
||||
{ref}/put-search-application.html[Endpoint documentation]
|
||||
{ref}/delete-search-application.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.searchApplication.delete({ name })
|
||||
@ -7596,6 +7722,17 @@ client.security.createApiKey({ ... })
|
||||
** *`metadata` (Optional, Record<string, User-defined value>)*: Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with `_` are reserved for system usage.
|
||||
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|
||||
|
||||
[discrete]
|
||||
==== create_cross_cluster_api_key
|
||||
Creates a cross-cluster API key for API key based remote cluster access.
|
||||
|
||||
{ref}/security-api-create-cross-cluster-api-key.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.security.createCrossClusterApiKey()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
==== create_service_token
|
||||
Creates a service account token for access without requiring basic authentication.
|
||||
@ -7788,6 +7925,7 @@ This parameter cannot be used with either `id` or `name` or when `owner` flag is
|
||||
associated with the API key. An API key's actual
|
||||
permission is the intersection of its assigned role
|
||||
descriptors and the owner user's role descriptors.
|
||||
** *`active_only` (Optional, boolean)*: A boolean flag that can be used to query API keys that are currently active. An API key is considered active if it is neither invalidated, nor expired at query time. You can specify this together with other parameters such as `owner` or `name`. If `active_only` is false, the response will include both active and inactive (expired or invalidated) keys.
|
||||
|
||||
[discrete]
|
||||
==== get_builtin_privileges
|
||||
@ -7883,6 +8021,17 @@ client.security.getServiceCredentials({ namespace, service })
|
||||
** *`namespace` (string)*: Name of the namespace.
|
||||
** *`service` (string)*: Name of the service name.
|
||||
|
||||
[discrete]
|
||||
==== get_settings
|
||||
Retrieve settings for the security system indices
|
||||
|
||||
{ref}/security-api-get-settings.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.security.getSettings()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
==== get_token
|
||||
Creates a bearer token for access without requiring basic authentication.
|
||||
@ -8121,6 +8270,7 @@ client.security.putRoleMapping({ name })
|
||||
** *`enabled` (Optional, boolean)*
|
||||
** *`metadata` (Optional, Record<string, User-defined value>)*
|
||||
** *`roles` (Optional, string[])*
|
||||
** *`role_templates` (Optional, { format, template }[])*
|
||||
** *`rules` (Optional, { any, all, field, except })*
|
||||
** *`run_as` (Optional, string[])*
|
||||
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|
||||
@ -8163,7 +8313,7 @@ client.security.queryApiKeys({ ... })
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: A query to filter which API keys to return.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: A query to filter which API keys to return.
|
||||
The query supports a subset of query types, including `match_all`, `bool`, `term`, `terms`, `ids`, `prefix`, `wildcard`, and `range`.
|
||||
You can query all public information associated with an API key.
|
||||
** *`from` (Optional, number)*: Starting document offset.
|
||||
@ -8310,6 +8460,29 @@ client.security.updateApiKey({ id })
|
||||
** *`id` (string)*: The ID of the API key to update.
|
||||
** *`role_descriptors` (Optional, Record<string, { cluster, indices, global, applications, metadata, run_as, transient_metadata }>)*: An array of role descriptors for this API key. This parameter is optional. When it is not specified or is an empty array, then the API key will have a point in time snapshot of permissions of the authenticated user. If you supply role descriptors then the resultant permissions would be an intersection of API keys permissions and authenticated user’s permissions thereby limiting the access scope for API keys. The structure of role descriptor is the same as the request for create role API. For more details, see create or update roles API.
|
||||
** *`metadata` (Optional, Record<string, User-defined value>)*: Arbitrary metadata that you want to associate with the API key. It supports nested data structure. Within the metadata object, keys beginning with _ are reserved for system usage.
|
||||
** *`expiration` (Optional, string | -1 | 0)*: Expiration time for the API key.
|
||||
|
||||
[discrete]
|
||||
==== update_cross_cluster_api_key
|
||||
Updates attributes of an existing cross-cluster API key.
|
||||
|
||||
{ref}/security-api-update-cross-cluster-api-key.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.security.updateCrossClusterApiKey()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
==== update_settings
|
||||
Update settings for the security system index
|
||||
|
||||
{ref}/security-api-update-settings.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.security.updateSettings()
|
||||
----
|
||||
|
||||
|
||||
[discrete]
|
||||
=== slm
|
||||
@ -8644,7 +8817,7 @@ client.snapshot.restore({ repository, snapshot })
|
||||
** *`ignore_unavailable` (Optional, boolean)*
|
||||
** *`include_aliases` (Optional, boolean)*
|
||||
** *`include_global_state` (Optional, boolean)*
|
||||
** *`index_settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, shards, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*
|
||||
** *`index_settings` (Optional, { index, mode, routing_path, soft_deletes, sort, number_of_shards, number_of_replicas, number_of_routing_shards, check_on_startup, codec, routing_partition_size, load_fixed_bitset_filters_eagerly, hidden, auto_expand_replicas, merge, search, refresh_interval, max_result_window, max_inner_result_window, max_rescore_window, max_docvalue_fields_search, max_script_fields, max_ngram_diff, max_shingle_diff, blocks, max_refresh_listeners, analyze, highlight, max_terms_count, max_regex_length, routing, gc_deletes, default_pipeline, final_pipeline, lifecycle, provided_name, creation_date, creation_date_string, uuid, version, verified_before_close, format, max_slices_per_scroll, translog, query_string, priority, top_metrics_max_size, analysis, settings, time_series, queries, similarity, mapping, indexing.slowlog, indexing_pressure, store })*
|
||||
** *`indices` (Optional, string | string[])*
|
||||
** *`partial` (Optional, boolean)*
|
||||
** *`rename_pattern` (Optional, string)*
|
||||
@ -8782,7 +8955,7 @@ client.sql.query({ ... })
|
||||
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
|
||||
It ignores other request body parameters.
|
||||
** *`fetch_size` (Optional, number)*: The maximum number of rows (or entries) to return in one response
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Elasticsearch query DSL for additional filtering.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Elasticsearch query DSL for additional filtering.
|
||||
** *`query` (Optional, string)*: SQL query to run.
|
||||
** *`request_timeout` (Optional, string | -1 | 0)*: The timeout before the request fails.
|
||||
** *`page_timeout` (Optional, string | -1 | 0)*: The timeout before a pagination request fails.
|
||||
@ -8813,7 +8986,7 @@ client.sql.translate({ query })
|
||||
* *Request (object):*
|
||||
** *`query` (string)*: SQL query to run.
|
||||
** *`fetch_size` (Optional, number)*: The maximum number of rows (or entries) to return in one response.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Elasticsearch query DSL for additional filtering.
|
||||
** *`filter` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Elasticsearch query DSL for additional filtering.
|
||||
** *`time_zone` (Optional, string)*: ISO-8601 time zone ID for the search.
|
||||
|
||||
[discrete]
|
||||
@ -8949,7 +9122,7 @@ client.synonyms.putSynonymRule({ set_id, rule_id, synonyms })
|
||||
* *Request (object):*
|
||||
** *`set_id` (string)*: The id of the synonym set to be updated with the synonym rule
|
||||
** *`rule_id` (string)*: The id of the synonym rule to be updated or created
|
||||
** *`synonyms` (string[])*
|
||||
** *`synonyms` (string)*
|
||||
|
||||
[discrete]
|
||||
=== tasks
|
||||
@ -9035,6 +9208,7 @@ client.textStructure.findStructure({ ... })
|
||||
** *`charset` (Optional, string)*: The text’s character set. It must be a character set that is supported by the JVM that Elasticsearch uses. For example, UTF-8, UTF-16LE, windows-1252, or EUC-JP. If this parameter is not specified, the structure finder chooses an appropriate character set.
|
||||
** *`column_names` (Optional, string)*: If you have set format to delimited, you can specify the column names in a list. If this parameter is not specified, the structure finder uses the column names from the header row of the text. If the text does not have a header role, columns are named "column1", "column2", "column3", etc.
|
||||
** *`delimiter` (Optional, string)*: If you have set format to delimited, you can specify the character used to delimit the values in each row. Only a single character is supported; the delimiter cannot have multiple characters. By default, the API considers the following possibilities: comma, tab, semi-colon, and pipe (|). In this default scenario, all rows must have the same number of fields for the delimited format to be detected. If you specify a delimiter, up to 10% of the rows can have a different number of columns than the first row.
|
||||
** *`ecs_compatibility` (Optional, string)*: The mode of compatibility with ECS compliant Grok patterns (disabled or v1, default: disabled).
|
||||
** *`explain` (Optional, boolean)*: If this parameter is set to true, the response includes a field named explanation, which is an array of strings that indicate how the structure finder produced its result.
|
||||
** *`format` (Optional, string)*: The high level structure of the text. Valid values are ndjson, xml, delimited, and semi_structured_text. By default, the API chooses the format. In this default scenario, all rows must have the same number of fields for a delimited format to be detected. If the format is set to delimited and the delimiter is not set, however, the API tolerates up to 5% of rows that have a different number of columns than the first row.
|
||||
** *`grok_pattern` (Optional, string)*: If you have set format to semi_structured_text, you can specify a Grok pattern that is used to extract fields from every message in the text. The name of the timestamp field in the Grok pattern must match what is specified in the timestamp_field parameter. If that parameter is not specified, the name of the timestamp field in the Grok pattern must match "timestamp". If grok_pattern is not specified, the structure finder creates a Grok pattern.
|
||||
@ -9047,6 +9221,24 @@ client.textStructure.findStructure({ ... })
|
||||
** *`timestamp_field` (Optional, string)*: Optional parameter to specify the timestamp field in the file
|
||||
** *`timestamp_format` (Optional, string)*: The Java time format of the timestamp field in the text.
|
||||
|
||||
[discrete]
|
||||
==== test_grok_pattern
|
||||
Tests a Grok pattern on some text.
|
||||
|
||||
{ref}/test-grok-pattern.html[Endpoint documentation]
|
||||
[source,ts]
|
||||
----
|
||||
client.textStructure.testGrokPattern({ grok_pattern, text })
|
||||
----
|
||||
|
||||
[discrete]
|
||||
==== Arguments
|
||||
|
||||
* *Request (object):*
|
||||
** *`grok_pattern` (string)*: Grok pattern to run on the text.
|
||||
** *`text` (string[])*: Lines of text to run the Grok pattern on.
|
||||
** *`ecs_compatibility` (Optional, string)*: The mode of compatibility with ECS compliant Grok patterns (disabled or v1, default: disabled).
|
||||
|
||||
[discrete]
|
||||
=== transform
|
||||
[discrete]
|
||||
@ -9503,7 +9695,7 @@ client.watcher.queryWatches({ ... })
|
||||
* *Request (object):*
|
||||
** *`from` (Optional, number)*: The offset from the first result to fetch. Needs to be non-negative.
|
||||
** *`size` (Optional, number)*: The number of hits to return. Needs to be non-negative.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, wildcard, wrapper, type })*: Optional, query filter watches to be returned.
|
||||
** *`query` (Optional, { bool, boosting, common, combined_fields, constant_score, dis_max, distance_feature, exists, function_score, fuzzy, geo_bounding_box, geo_distance, geo_polygon, geo_shape, has_child, has_parent, ids, intervals, knn, match, match_all, match_bool_prefix, match_none, match_phrase, match_phrase_prefix, more_like_this, multi_match, nested, parent_id, percolate, pinned, prefix, query_string, range, rank_feature, regexp, rule_query, script, script_score, shape, simple_query_string, span_containing, field_masking_span, span_first, span_multi, span_near, span_not, span_or, span_term, span_within, term, terms, terms_set, text_expansion, weighted_tokens, wildcard, wrapper, type })*: Optional, query filter watches to be returned.
|
||||
** *`sort` (Optional, string | { _score, _doc, _geo_distance, _script } | string | { _score, _doc, _geo_distance, _script }[])*: Optional sort definition.
|
||||
** *`search_after` (Optional, number | number | string | boolean | null | User-defined value[])*: Optional search After to do pagination using last hit’s sort values.
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ export default class Eql {
|
||||
|
||||
/**
|
||||
* Returns async results from previously executed Event Query Language (EQL) search
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-search-api.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-search-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async get<TEvent = unknown> (this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetResponse<TEvent>>
|
||||
async get<TEvent = unknown> (this: That, params: T.EqlGetRequest | TB.EqlGetRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetResponse<TEvent>, unknown>>
|
||||
@ -97,7 +97,7 @@ export default class Eql {
|
||||
|
||||
/**
|
||||
* Returns the status of a previously submitted async or stored Event Query Language (EQL) search
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-status-api.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-async-eql-status-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async getStatus (this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EqlGetStatusResponse>
|
||||
async getStatus (this: That, params: T.EqlGetStatusRequest | TB.EqlGetStatusRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EqlGetStatusResponse, unknown>>
|
||||
|
||||
83
src/api/api/esql.ts
Normal file
83
src/api/api/esql.ts
Normal file
@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
/* eslint-disable import/export */
|
||||
/* eslint-disable @typescript-eslint/no-misused-new */
|
||||
/* eslint-disable @typescript-eslint/no-extraneous-class */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
// This file was automatically generated by elastic/elastic-client-generator-js
|
||||
// DO NOT MODIFY IT BY HAND. Instead, modify the source open api file,
|
||||
// and elastic/elastic-client-generator-js to regenerate this file again.
|
||||
|
||||
import {
|
||||
Transport,
|
||||
TransportRequestOptions,
|
||||
TransportRequestOptionsWithMeta,
|
||||
TransportRequestOptionsWithOutMeta,
|
||||
TransportResult
|
||||
} from '@elastic/transport'
|
||||
import * as T from '../types'
|
||||
import * as TB from '../typesWithBodyKey'
|
||||
interface That { transport: Transport }
|
||||
|
||||
export default class Esql {
|
||||
transport: Transport
|
||||
constructor (transport: Transport) {
|
||||
this.transport = transport
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes an ESQL request
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/esql-rest.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.EsqlQueryResponse>
|
||||
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.EsqlQueryResponse, unknown>>
|
||||
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<T.EsqlQueryResponse>
|
||||
async query (this: That, params: T.EsqlQueryRequest | TB.EsqlQueryRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const acceptedBody: string[] = ['columnar', 'filter', 'locale', 'params', 'query']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
let body: Record<string, any> | string
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody
|
||||
} else {
|
||||
body = userBody != null ? { ...userBody } : undefined
|
||||
}
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body ?? {}
|
||||
// @ts-expect-error
|
||||
body[key] = params[key]
|
||||
} else if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'POST'
|
||||
const path = '/_query'
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
}
|
||||
@ -43,6 +43,56 @@ export default class Fleet {
|
||||
this.transport = transport
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes a secret stored by Fleet.
|
||||
*/
|
||||
async deleteSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async deleteSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async deleteSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async deleteSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'DELETE'
|
||||
const path = `/_fleet/secret/${encodeURIComponent(params.id.toString())}`
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a secret stored by Fleet.
|
||||
*/
|
||||
async getSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async getSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async getSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async getSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'GET'
|
||||
const path = `/_fleet/secret/${encodeURIComponent(params.id.toString())}`
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-global-checkpoints.html | Elasticsearch API documentation}
|
||||
@ -106,6 +156,31 @@ export default class Fleet {
|
||||
return await this.transport.request({ path, method, querystring, bulkBody: body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a secret stored by Fleet.
|
||||
*/
|
||||
async postSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async postSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async postSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async postSecret (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'POST'
|
||||
const path = '/_fleet/secret'
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Search API where the search will only be executed after specified checkpoints are available due to a refresh. This API is designed for internal use by the fleet server project.
|
||||
*/
|
||||
|
||||
@ -424,7 +424,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Deletes an index template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async deleteIndexTemplate (this: That, params: T.IndicesDeleteIndexTemplateRequest | TB.IndicesDeleteIndexTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesDeleteIndexTemplateResponse>
|
||||
async deleteIndexTemplate (this: That, params: T.IndicesDeleteIndexTemplateRequest | TB.IndicesDeleteIndexTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesDeleteIndexTemplateResponse, unknown>>
|
||||
@ -450,7 +450,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Deletes an index template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-template-v1.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async deleteTemplate (this: That, params: T.IndicesDeleteTemplateRequest | TB.IndicesDeleteTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesDeleteTemplateResponse>
|
||||
async deleteTemplate (this: That, params: T.IndicesDeleteTemplateRequest | TB.IndicesDeleteTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesDeleteTemplateResponse, unknown>>
|
||||
@ -592,7 +592,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Returns information about whether a particular index template exists.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/index-templates.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async existsIndexTemplate (this: That, params: T.IndicesExistsIndexTemplateRequest | TB.IndicesExistsIndexTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesExistsIndexTemplateResponse>
|
||||
async existsIndexTemplate (this: That, params: T.IndicesExistsIndexTemplateRequest | TB.IndicesExistsIndexTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesExistsIndexTemplateResponse, unknown>>
|
||||
@ -618,7 +618,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Returns information about whether a particular index template exists.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-template-exists-v1.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async existsTemplate (this: That, params: T.IndicesExistsTemplateRequest | TB.IndicesExistsTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesExistsTemplateResponse>
|
||||
async existsTemplate (this: That, params: T.IndicesExistsTemplateRequest | TB.IndicesExistsTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesExistsTemplateResponse, unknown>>
|
||||
@ -923,7 +923,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Returns an index template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async getIndexTemplate (this: That, params?: T.IndicesGetIndexTemplateRequest | TB.IndicesGetIndexTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesGetIndexTemplateResponse>
|
||||
async getIndexTemplate (this: That, params?: T.IndicesGetIndexTemplateRequest | TB.IndicesGetIndexTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesGetIndexTemplateResponse, unknown>>
|
||||
@ -1031,7 +1031,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Returns an index template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-template-v1.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async getTemplate (this: That, params?: T.IndicesGetTemplateRequest | TB.IndicesGetTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesGetTemplateResponse>
|
||||
async getTemplate (this: That, params?: T.IndicesGetTemplateRequest | TB.IndicesGetTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesGetTemplateResponse, unknown>>
|
||||
@ -1264,7 +1264,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Creates or updates an index template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async putIndexTemplate (this: That, params: T.IndicesPutIndexTemplateRequest | TB.IndicesPutIndexTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesPutIndexTemplateResponse>
|
||||
async putIndexTemplate (this: That, params: T.IndicesPutIndexTemplateRequest | TB.IndicesPutIndexTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesPutIndexTemplateResponse, unknown>>
|
||||
@ -1378,7 +1378,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Creates or updates an index template.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async putTemplate (this: That, params: T.IndicesPutTemplateRequest | TB.IndicesPutTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesPutTemplateResponse>
|
||||
async putTemplate (this: That, params: T.IndicesPutTemplateRequest | TB.IndicesPutTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesPutTemplateResponse, unknown>>
|
||||
@ -1508,6 +1508,32 @@ export default class Indices {
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-cluster-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async resolveCluster (this: That, params: T.IndicesResolveClusterRequest | TB.IndicesResolveClusterRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesResolveClusterResponse>
|
||||
async resolveCluster (this: That, params: T.IndicesResolveClusterRequest | TB.IndicesResolveClusterRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesResolveClusterResponse, unknown>>
|
||||
async resolveCluster (this: That, params: T.IndicesResolveClusterRequest | TB.IndicesResolveClusterRequest, options?: TransportRequestOptions): Promise<T.IndicesResolveClusterResponse>
|
||||
async resolveCluster (this: That, params: T.IndicesResolveClusterRequest | TB.IndicesResolveClusterRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['name']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'GET'
|
||||
const path = `/_resolve/cluster/${encodeURIComponent(params.name.toString())}`
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns information about any matching indices, aliases, and data streams
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html | Elasticsearch API documentation}
|
||||
@ -1687,7 +1713,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Simulate matching the given index name against the index templates in the system
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-index.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async simulateIndexTemplate (this: That, params: T.IndicesSimulateIndexTemplateRequest | TB.IndicesSimulateIndexTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesSimulateIndexTemplateResponse>
|
||||
async simulateIndexTemplate (this: That, params: T.IndicesSimulateIndexTemplateRequest | TB.IndicesSimulateIndexTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesSimulateIndexTemplateResponse, unknown>>
|
||||
@ -1725,7 +1751,7 @@ export default class Indices {
|
||||
|
||||
/**
|
||||
* Simulate resolving the given template name or body
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-simulate-template.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async simulateTemplate (this: That, params: T.IndicesSimulateTemplateRequest | TB.IndicesSimulateTemplateRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.IndicesSimulateTemplateResponse>
|
||||
async simulateTemplate (this: That, params: T.IndicesSimulateTemplateRequest | TB.IndicesSimulateTemplateRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.IndicesSimulateTemplateResponse, unknown>>
|
||||
|
||||
194
src/api/api/inference.ts
Normal file
194
src/api/api/inference.ts
Normal file
@ -0,0 +1,194 @@
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
/* eslint-disable import/export */
|
||||
/* eslint-disable @typescript-eslint/no-misused-new */
|
||||
/* eslint-disable @typescript-eslint/no-extraneous-class */
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
|
||||
// This file was automatically generated by elastic/elastic-client-generator-js
|
||||
// DO NOT MODIFY IT BY HAND. Instead, modify the source open api file,
|
||||
// and elastic/elastic-client-generator-js to regenerate this file again.
|
||||
|
||||
import {
|
||||
Transport,
|
||||
TransportRequestOptions,
|
||||
TransportRequestOptionsWithMeta,
|
||||
TransportRequestOptionsWithOutMeta,
|
||||
TransportResult
|
||||
} from '@elastic/transport'
|
||||
import * as T from '../types'
|
||||
import * as TB from '../typesWithBodyKey'
|
||||
interface That { transport: Transport }
|
||||
|
||||
export default class Inference {
|
||||
transport: Transport
|
||||
constructor (transport: Transport) {
|
||||
this.transport = transport
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete model in the Inference API
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async deleteModel (this: That, params: T.InferenceDeleteModelRequest | TB.InferenceDeleteModelRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferenceDeleteModelResponse>
|
||||
async deleteModel (this: That, params: T.InferenceDeleteModelRequest | TB.InferenceDeleteModelRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.InferenceDeleteModelResponse, unknown>>
|
||||
async deleteModel (this: That, params: T.InferenceDeleteModelRequest | TB.InferenceDeleteModelRequest, options?: TransportRequestOptions): Promise<T.InferenceDeleteModelResponse>
|
||||
async deleteModel (this: That, params: T.InferenceDeleteModelRequest | TB.InferenceDeleteModelRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['task_type', 'inference_id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
let method = ''
|
||||
let path = ''
|
||||
if (params.task_type != null && params.inference_id != null) {
|
||||
method = 'DELETE'
|
||||
path = `/_inference/${encodeURIComponent(params.task_type.toString())}/${encodeURIComponent(params.inference_id.toString())}`
|
||||
} else {
|
||||
method = 'DELETE'
|
||||
path = `/_inference/${encodeURIComponent(params.inference_id.toString())}`
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a model in the Inference API
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async getModel (this: That, params: T.InferenceGetModelRequest | TB.InferenceGetModelRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferenceGetModelResponse>
|
||||
async getModel (this: That, params: T.InferenceGetModelRequest | TB.InferenceGetModelRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.InferenceGetModelResponse, unknown>>
|
||||
async getModel (this: That, params: T.InferenceGetModelRequest | TB.InferenceGetModelRequest, options?: TransportRequestOptions): Promise<T.InferenceGetModelResponse>
|
||||
async getModel (this: That, params: T.InferenceGetModelRequest | TB.InferenceGetModelRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['task_type', 'inference_id']
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
let method = ''
|
||||
let path = ''
|
||||
if (params.task_type != null && params.inference_id != null) {
|
||||
method = 'GET'
|
||||
path = `/_inference/${encodeURIComponent(params.task_type.toString())}/${encodeURIComponent(params.inference_id.toString())}`
|
||||
} else {
|
||||
method = 'GET'
|
||||
path = `/_inference/${encodeURIComponent(params.inference_id.toString())}`
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform inference on a model
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async inference (this: That, params: T.InferenceInferenceRequest | TB.InferenceInferenceRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferenceInferenceResponse>
|
||||
async inference (this: That, params: T.InferenceInferenceRequest | TB.InferenceInferenceRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.InferenceInferenceResponse, unknown>>
|
||||
async inference (this: That, params: T.InferenceInferenceRequest | TB.InferenceInferenceRequest, options?: TransportRequestOptions): Promise<T.InferenceInferenceResponse>
|
||||
async inference (this: That, params: T.InferenceInferenceRequest | TB.InferenceInferenceRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['task_type', 'inference_id']
|
||||
const acceptedBody: string[] = ['input', 'task_settings']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
let body: Record<string, any> | string
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody
|
||||
} else {
|
||||
body = userBody != null ? { ...userBody } : undefined
|
||||
}
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body ?? {}
|
||||
// @ts-expect-error
|
||||
body[key] = params[key]
|
||||
} else if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
let method = ''
|
||||
let path = ''
|
||||
if (params.task_type != null && params.inference_id != null) {
|
||||
method = 'POST'
|
||||
path = `/_inference/${encodeURIComponent(params.task_type.toString())}/${encodeURIComponent(params.inference_id.toString())}`
|
||||
} else {
|
||||
method = 'POST'
|
||||
path = `/_inference/${encodeURIComponent(params.inference_id.toString())}`
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure a model for use in the Inference API
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async putModel (this: That, params: T.InferencePutModelRequest | TB.InferencePutModelRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.InferencePutModelResponse>
|
||||
async putModel (this: That, params: T.InferencePutModelRequest | TB.InferencePutModelRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.InferencePutModelResponse, unknown>>
|
||||
async putModel (this: That, params: T.InferencePutModelRequest | TB.InferencePutModelRequest, options?: TransportRequestOptions): Promise<T.InferencePutModelResponse>
|
||||
async putModel (this: That, params: T.InferencePutModelRequest | TB.InferencePutModelRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['task_type', 'inference_id']
|
||||
const acceptedBody: string[] = ['model_config']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
let body: any = params.body ?? undefined
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
// @ts-expect-error
|
||||
body = params[key]
|
||||
} else if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
let method = ''
|
||||
let path = ''
|
||||
if (params.task_type != null && params.inference_id != null) {
|
||||
method = 'PUT'
|
||||
path = `/_inference/${encodeURIComponent(params.task_type.toString())}/${encodeURIComponent(params.inference_id.toString())}`
|
||||
} else {
|
||||
method = 'PUT'
|
||||
path = `/_inference/${encodeURIComponent(params.inference_id.toString())}`
|
||||
}
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
}
|
||||
@ -45,7 +45,7 @@ export default class SearchApplication {
|
||||
|
||||
/**
|
||||
* Deletes a search application.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html | Elasticsearch API documentation}
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-search-application.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async delete (this: That, params: T.SearchApplicationDeleteRequest | TB.SearchApplicationDeleteRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.SearchApplicationDeleteResponse>
|
||||
async delete (this: That, params: T.SearchApplicationDeleteRequest | TB.SearchApplicationDeleteRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.SearchApplicationDeleteResponse, unknown>>
|
||||
|
||||
@ -918,6 +918,32 @@ export default class Security {
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve settings for the security system indices
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-settings.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async getSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'GET'
|
||||
const path = '/_security/settings'
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a bearer token for access without requiring basic authentication.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-token.html | Elasticsearch API documentation}
|
||||
@ -1400,7 +1426,7 @@ export default class Security {
|
||||
async putRoleMapping (this: That, params: T.SecurityPutRoleMappingRequest | TB.SecurityPutRoleMappingRequest, options?: TransportRequestOptions): Promise<T.SecurityPutRoleMappingResponse>
|
||||
async putRoleMapping (this: That, params: T.SecurityPutRoleMappingRequest | TB.SecurityPutRoleMappingRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['name']
|
||||
const acceptedBody: string[] = ['enabled', 'metadata', 'roles', 'rules', 'run_as']
|
||||
const acceptedBody: string[] = ['enabled', 'metadata', 'roles', 'role_templates', 'rules', 'run_as']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
@ -1771,7 +1797,7 @@ export default class Security {
|
||||
async updateApiKey (this: That, params: T.SecurityUpdateApiKeyRequest | TB.SecurityUpdateApiKeyRequest, options?: TransportRequestOptions): Promise<T.SecurityUpdateApiKeyResponse>
|
||||
async updateApiKey (this: That, params: T.SecurityUpdateApiKeyRequest | TB.SecurityUpdateApiKeyRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = ['id']
|
||||
const acceptedBody: string[] = ['role_descriptors', 'metadata']
|
||||
const acceptedBody: string[] = ['role_descriptors', 'metadata', 'expiration']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
@ -1826,6 +1852,32 @@ export default class Security {
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Update settings for the security system index
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-update-settings.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithOutMeta): Promise<T.TODO>
|
||||
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TODO, unknown>>
|
||||
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<T.TODO>
|
||||
async updateSettings (this: That, params?: T.TODO | TB.TODO, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const querystring: Record<string, any> = {}
|
||||
const body = undefined
|
||||
|
||||
params = params ?? {}
|
||||
for (const key in params) {
|
||||
if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = 'PUT'
|
||||
const path = '/_security/settings'
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Update application specific data for the user profile of the given unique ID.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-update-user-profile-data.html | Elasticsearch API documentation}
|
||||
|
||||
@ -73,4 +73,42 @@ export default class TextStructure {
|
||||
const path = '/_text_structure/find_structure'
|
||||
return await this.transport.request({ path, method, querystring, bulkBody: body }, options)
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests a Grok pattern on some text.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/test-grok-pattern.html | Elasticsearch API documentation}
|
||||
*/
|
||||
async testGrokPattern (this: That, params: T.TextStructureTestGrokPatternRequest | TB.TextStructureTestGrokPatternRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.TextStructureTestGrokPatternResponse>
|
||||
async testGrokPattern (this: That, params: T.TextStructureTestGrokPatternRequest | TB.TextStructureTestGrokPatternRequest, options?: TransportRequestOptionsWithMeta): Promise<TransportResult<T.TextStructureTestGrokPatternResponse, unknown>>
|
||||
async testGrokPattern (this: That, params: T.TextStructureTestGrokPatternRequest | TB.TextStructureTestGrokPatternRequest, options?: TransportRequestOptions): Promise<T.TextStructureTestGrokPatternResponse>
|
||||
async testGrokPattern (this: That, params: T.TextStructureTestGrokPatternRequest | TB.TextStructureTestGrokPatternRequest, options?: TransportRequestOptions): Promise<any> {
|
||||
const acceptedPath: string[] = []
|
||||
const acceptedBody: string[] = ['grok_pattern', 'text']
|
||||
const querystring: Record<string, any> = {}
|
||||
// @ts-expect-error
|
||||
const userBody: any = params?.body
|
||||
let body: Record<string, any> | string
|
||||
if (typeof userBody === 'string') {
|
||||
body = userBody
|
||||
} else {
|
||||
body = userBody != null ? { ...userBody } : undefined
|
||||
}
|
||||
|
||||
for (const key in params) {
|
||||
if (acceptedBody.includes(key)) {
|
||||
body = body ?? {}
|
||||
// @ts-expect-error
|
||||
body[key] = params[key]
|
||||
} else if (acceptedPath.includes(key)) {
|
||||
continue
|
||||
} else if (key !== 'body') {
|
||||
// @ts-expect-error
|
||||
querystring[key] = params[key]
|
||||
}
|
||||
}
|
||||
|
||||
const method = body != null ? 'POST' : 'GET'
|
||||
const path = '/_text_structure/test_grok_pattern'
|
||||
return await this.transport.request({ path, method, querystring, body }, options)
|
||||
}
|
||||
}
|
||||
|
||||
@ -38,7 +38,7 @@ import * as TB from '../typesWithBodyKey'
|
||||
interface That { transport: Transport }
|
||||
|
||||
/**
|
||||
* Performs an update on every document in the index without changing the source, for example to pick up a mapping change.
|
||||
* Updates documents that match the specified query. If no query is specified, performs an update on every document in the index without changing the source, for example to pick up a mapping change.
|
||||
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html | Elasticsearch API documentation}
|
||||
*/
|
||||
export default async function UpdateByQueryApi (this: That, params: T.UpdateByQueryRequest | TB.UpdateByQueryRequest, options?: TransportRequestOptionsWithOutMeta): Promise<T.UpdateByQueryResponse>
|
||||
|
||||
@ -43,6 +43,7 @@ import deleteByQueryRethrottleApi from './api/delete_by_query_rethrottle'
|
||||
import deleteScriptApi from './api/delete_script'
|
||||
import EnrichApi from './api/enrich'
|
||||
import EqlApi from './api/eql'
|
||||
import EsqlApi from './api/esql'
|
||||
import existsApi from './api/exists'
|
||||
import existsSourceApi from './api/exists_source'
|
||||
import explainApi from './api/explain'
|
||||
@ -59,6 +60,7 @@ import healthReportApi from './api/health_report'
|
||||
import IlmApi from './api/ilm'
|
||||
import indexApi from './api/index'
|
||||
import IndicesApi from './api/indices'
|
||||
import InferenceApi from './api/inference'
|
||||
import infoApi from './api/info'
|
||||
import IngestApi from './api/ingest'
|
||||
import knnSearchApi from './api/knn_search'
|
||||
@ -126,6 +128,7 @@ export default interface API {
|
||||
deleteScript: typeof deleteScriptApi
|
||||
enrich: EnrichApi
|
||||
eql: EqlApi
|
||||
esql: EsqlApi
|
||||
exists: typeof existsApi
|
||||
existsSource: typeof existsSourceApi
|
||||
explain: typeof explainApi
|
||||
@ -142,6 +145,7 @@ export default interface API {
|
||||
ilm: IlmApi
|
||||
index: typeof indexApi
|
||||
indices: IndicesApi
|
||||
inference: InferenceApi
|
||||
info: typeof infoApi
|
||||
ingest: IngestApi
|
||||
knnSearch: typeof knnSearchApi
|
||||
@ -199,11 +203,13 @@ const kCluster = Symbol('Cluster')
|
||||
const kDanglingIndices = Symbol('DanglingIndices')
|
||||
const kEnrich = Symbol('Enrich')
|
||||
const kEql = Symbol('Eql')
|
||||
const kEsql = Symbol('Esql')
|
||||
const kFeatures = Symbol('Features')
|
||||
const kFleet = Symbol('Fleet')
|
||||
const kGraph = Symbol('Graph')
|
||||
const kIlm = Symbol('Ilm')
|
||||
const kIndices = Symbol('Indices')
|
||||
const kInference = Symbol('Inference')
|
||||
const kIngest = Symbol('Ingest')
|
||||
const kLicense = Symbol('License')
|
||||
const kLogstash = Symbol('Logstash')
|
||||
@ -237,11 +243,13 @@ export default class API {
|
||||
[kDanglingIndices]: symbol | null
|
||||
[kEnrich]: symbol | null
|
||||
[kEql]: symbol | null
|
||||
[kEsql]: symbol | null
|
||||
[kFeatures]: symbol | null
|
||||
[kFleet]: symbol | null
|
||||
[kGraph]: symbol | null
|
||||
[kIlm]: symbol | null
|
||||
[kIndices]: symbol | null
|
||||
[kInference]: symbol | null
|
||||
[kIngest]: symbol | null
|
||||
[kLicense]: symbol | null
|
||||
[kLogstash]: symbol | null
|
||||
@ -274,11 +282,13 @@ export default class API {
|
||||
this[kDanglingIndices] = null
|
||||
this[kEnrich] = null
|
||||
this[kEql] = null
|
||||
this[kEsql] = null
|
||||
this[kFeatures] = null
|
||||
this[kFleet] = null
|
||||
this[kGraph] = null
|
||||
this[kIlm] = null
|
||||
this[kIndices] = null
|
||||
this[kInference] = null
|
||||
this[kIngest] = null
|
||||
this[kLicense] = null
|
||||
this[kLogstash] = null
|
||||
@ -375,6 +385,9 @@ Object.defineProperties(API.prototype, {
|
||||
eql: {
|
||||
get () { return this[kEql] === null ? (this[kEql] = new EqlApi(this.transport)) : this[kEql] }
|
||||
},
|
||||
esql: {
|
||||
get () { return this[kEsql] === null ? (this[kEsql] = new EsqlApi(this.transport)) : this[kEsql] }
|
||||
},
|
||||
features: {
|
||||
get () { return this[kFeatures] === null ? (this[kFeatures] = new FeaturesApi(this.transport)) : this[kFeatures] }
|
||||
},
|
||||
@ -390,6 +403,9 @@ Object.defineProperties(API.prototype, {
|
||||
indices: {
|
||||
get () { return this[kIndices] === null ? (this[kIndices] = new IndicesApi(this.transport)) : this[kIndices] }
|
||||
},
|
||||
inference: {
|
||||
get () { return this[kInference] === null ? (this[kInference] = new InferenceApi(this.transport)) : this[kInference] }
|
||||
},
|
||||
ingest: {
|
||||
get () { return this[kIngest] === null ? (this[kIngest] = new IngestApi(this.transport)) : this[kIngest] }
|
||||
},
|
||||
|
||||
264
src/api/types.ts
264
src/api/types.ts
@ -347,6 +347,7 @@ export interface FieldCapsRequest extends RequestBase {
|
||||
include_unmapped?: boolean
|
||||
filters?: string
|
||||
types?: string[]
|
||||
include_empty_fields?: boolean
|
||||
fields?: Fields
|
||||
index_filter?: QueryDslQueryContainer
|
||||
runtime_mappings?: MappingRuntimeFields
|
||||
@ -1146,6 +1147,7 @@ export interface SearchRequest extends RequestBase {
|
||||
_source_includes?: Fields
|
||||
q?: string
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
collapse?: SearchFieldCollapse
|
||||
explain?: boolean
|
||||
@ -2073,6 +2075,13 @@ export interface ElasticsearchVersionInfo {
|
||||
number: string
|
||||
}
|
||||
|
||||
export interface ElasticsearchVersionMinInfo {
|
||||
build_flavor: string
|
||||
minimum_index_compatibility_version: VersionString
|
||||
minimum_wire_compatibility_version: VersionString
|
||||
number: string
|
||||
}
|
||||
|
||||
export interface EmptyObject {
|
||||
}
|
||||
|
||||
@ -2094,6 +2103,8 @@ export interface ErrorResponseBase {
|
||||
status: integer
|
||||
}
|
||||
|
||||
export type EsqlColumns = ArrayBuffer
|
||||
|
||||
export type ExpandWildcard = 'all' | 'open' | 'closed' | 'hidden' | 'none'
|
||||
|
||||
export type ExpandWildcards = ExpandWildcard | ExpandWildcard[]
|
||||
@ -2275,6 +2286,7 @@ export interface KnnQuery {
|
||||
boost?: float
|
||||
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
|
||||
similarity?: float
|
||||
inner_hits?: SearchInnerHits
|
||||
}
|
||||
|
||||
export interface LatLonGeoLocation {
|
||||
@ -2286,8 +2298,6 @@ export type Level = 'cluster' | 'indices' | 'shards'
|
||||
|
||||
export type LifecycleOperationMode = 'RUNNING' | 'STOPPING' | 'STOPPED'
|
||||
|
||||
export type ManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged'
|
||||
|
||||
export type MapboxVectorTiles = ArrayBuffer
|
||||
|
||||
export interface MergesStats {
|
||||
@ -2467,6 +2477,8 @@ export interface RrfRank {
|
||||
window_size?: long
|
||||
}
|
||||
|
||||
export type ScalarValue = long | double | string | boolean | null
|
||||
|
||||
export interface ScoreSort {
|
||||
order?: SortOrder
|
||||
}
|
||||
@ -4508,11 +4520,11 @@ export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNor
|
||||
|
||||
export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
|
||||
type: 'path_hierarchy'
|
||||
buffer_size: SpecUtilsStringified<integer>
|
||||
delimiter: string
|
||||
replacement: string
|
||||
reverse: SpecUtilsStringified<boolean>
|
||||
skip: SpecUtilsStringified<integer>
|
||||
buffer_size?: SpecUtilsStringified<integer>
|
||||
delimiter?: string
|
||||
replacement?: string
|
||||
reverse?: SpecUtilsStringified<boolean>
|
||||
skip?: SpecUtilsStringified<integer>
|
||||
}
|
||||
|
||||
export interface AnalysisPatternAnalyzer {
|
||||
@ -4688,7 +4700,7 @@ export interface AnalysisTokenFilterBase {
|
||||
version?: VersionString
|
||||
}
|
||||
|
||||
export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuTokenizer | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter
|
||||
export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter
|
||||
|
||||
export type AnalysisTokenizer = string | AnalysisTokenizerDefinition
|
||||
|
||||
@ -5096,7 +5108,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
|
||||
type: 'point'
|
||||
}
|
||||
|
||||
export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty
|
||||
export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingSparseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty
|
||||
|
||||
export interface MappingPropertyBase {
|
||||
meta?: Record<string, string>
|
||||
@ -5190,6 +5202,10 @@ export interface MappingSourceField {
|
||||
|
||||
export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic'
|
||||
|
||||
export interface MappingSparseVectorProperty extends MappingPropertyBase {
|
||||
type: 'sparse_vector'
|
||||
}
|
||||
|
||||
export interface MappingSuggestContext {
|
||||
name: Name
|
||||
path?: Field
|
||||
@ -5432,9 +5448,10 @@ export interface QueryDslGeoDistanceQueryKeys extends QueryDslQueryBase {
|
||||
distance: Distance
|
||||
distance_type?: GeoDistanceType
|
||||
validation_method?: QueryDslGeoValidationMethod
|
||||
ignore_unmapped?: boolean
|
||||
}
|
||||
export type QueryDslGeoDistanceQuery = QueryDslGeoDistanceQueryKeys
|
||||
& { [property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | float | string }
|
||||
& { [property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | boolean | float | string }
|
||||
|
||||
export type QueryDslGeoExecution = 'memory' | 'indexed'
|
||||
|
||||
@ -5746,6 +5763,7 @@ export interface QueryDslQueryContainer {
|
||||
has_parent?: QueryDslHasParentQuery
|
||||
ids?: QueryDslIdsQuery
|
||||
intervals?: Partial<Record<Field, QueryDslIntervalsQuery>>
|
||||
knn?: KnnQuery
|
||||
match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>
|
||||
match_all?: QueryDslMatchAllQuery
|
||||
match_bool_prefix?: Partial<Record<Field, QueryDslMatchBoolPrefixQuery | string>>
|
||||
@ -5781,6 +5799,7 @@ export interface QueryDslQueryContainer {
|
||||
terms?: QueryDslTermsQuery
|
||||
terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>
|
||||
text_expansion?: Partial<Record<Field, QueryDslTextExpansionQuery>>
|
||||
weighted_tokens?: Partial<Record<Field, QueryDslWeightedTokensQuery>>
|
||||
wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>
|
||||
wrapper?: QueryDslWrapperQuery
|
||||
type?: QueryDslTypeQuery
|
||||
@ -6003,14 +6022,26 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
|
||||
export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
|
||||
model_id: string
|
||||
model_text: string
|
||||
pruning_config?: QueryDslTokenPruningConfig
|
||||
}
|
||||
|
||||
export type QueryDslTextQueryType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix'
|
||||
|
||||
export interface QueryDslTokenPruningConfig {
|
||||
tokens_freq_ratio_threshold?: integer
|
||||
tokens_weight_threshold?: float
|
||||
only_score_pruned_tokens?: boolean
|
||||
}
|
||||
|
||||
export interface QueryDslTypeQuery extends QueryDslQueryBase {
|
||||
value: string
|
||||
}
|
||||
|
||||
export interface QueryDslWeightedTokensQuery extends QueryDslQueryBase {
|
||||
tokens: Record<string, float>
|
||||
pruning_config?: QueryDslTokenPruningConfig
|
||||
}
|
||||
|
||||
export interface QueryDslWildcardQuery extends QueryDslQueryBase {
|
||||
case_insensitive?: boolean
|
||||
rewrite?: MultiTermQueryRewrite
|
||||
@ -6119,6 +6150,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
||||
_source_includes?: Fields
|
||||
q?: string
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
collapse?: SearchFieldCollapse
|
||||
explain?: boolean
|
||||
@ -8952,7 +8984,7 @@ export interface EnrichPolicy {
|
||||
enrich_fields: Fields
|
||||
indices: Indices
|
||||
match_field: Field
|
||||
query?: string
|
||||
query?: QueryDslQueryContainer
|
||||
name?: Name
|
||||
elasticsearch_version?: string
|
||||
}
|
||||
@ -9111,6 +9143,18 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
|
||||
|
||||
export type EqlSearchResultPosition = 'tail' | 'head'
|
||||
|
||||
export interface EsqlQueryRequest extends RequestBase {
|
||||
format?: string
|
||||
delimiter?: string
|
||||
columnar?: boolean
|
||||
filter?: QueryDslQueryContainer
|
||||
locale?: string
|
||||
params?: ScalarValue[]
|
||||
query: string
|
||||
}
|
||||
|
||||
export type EsqlQueryResponse = EsqlColumns
|
||||
|
||||
export interface FeaturesFeature {
|
||||
name: string
|
||||
description: string
|
||||
@ -9200,6 +9244,7 @@ export interface FleetSearchRequest extends RequestBase {
|
||||
wait_for_checkpoints?: FleetCheckpoint[]
|
||||
allow_partial_search_results?: boolean
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
collapse?: SearchFieldCollapse
|
||||
explain?: boolean
|
||||
@ -9525,7 +9570,7 @@ export interface IndicesDataStream {
|
||||
generation: integer
|
||||
hidden: boolean
|
||||
ilm_policy?: Name
|
||||
next_generation_managed_by: ManagedBy
|
||||
next_generation_managed_by: IndicesManagedBy
|
||||
prefer_ilm: boolean
|
||||
indices: IndicesDataStreamIndex[]
|
||||
lifecycle?: IndicesDataStreamLifecycleWithRollover
|
||||
@ -9541,7 +9586,7 @@ export interface IndicesDataStreamIndex {
|
||||
index_name: IndexName
|
||||
index_uuid: Uuid
|
||||
ilm_policy?: Name
|
||||
managed_by: ManagedBy
|
||||
managed_by: IndicesManagedBy
|
||||
prefer_ilm: boolean
|
||||
}
|
||||
|
||||
@ -9697,7 +9742,6 @@ export interface IndicesIndexSettingsKeys {
|
||||
analysis?: IndicesIndexSettingsAnalysis
|
||||
settings?: IndicesIndexSettings
|
||||
time_series?: IndicesIndexSettingsTimeSeries
|
||||
shards?: integer
|
||||
queries?: IndicesQueries
|
||||
similarity?: IndicesSettingsSimilarity
|
||||
mapping?: IndicesMappingLimitSettings
|
||||
@ -9790,6 +9834,8 @@ export interface IndicesIndexingSlowlogTresholds {
|
||||
index?: IndicesSlowlogTresholdLevels
|
||||
}
|
||||
|
||||
export type IndicesManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged'
|
||||
|
||||
export interface IndicesMappingLimitSettings {
|
||||
coerce?: boolean
|
||||
total_fields?: IndicesMappingLimitSettingsTotalFields
|
||||
@ -10791,6 +10837,24 @@ export interface IndicesReloadSearchAnalyzersRequest extends RequestBase {
|
||||
|
||||
export type IndicesReloadSearchAnalyzersResponse = IndicesReloadSearchAnalyzersReloadResult
|
||||
|
||||
export interface IndicesResolveClusterRequest extends RequestBase {
|
||||
name: Names
|
||||
allow_no_indices?: boolean
|
||||
expand_wildcards?: ExpandWildcards
|
||||
ignore_throttled?: boolean
|
||||
ignore_unavailable?: boolean
|
||||
}
|
||||
|
||||
export interface IndicesResolveClusterResolveClusterInfo {
|
||||
connected: boolean
|
||||
skip_unavailable: boolean
|
||||
matching_indices?: boolean
|
||||
error?: string
|
||||
version?: ElasticsearchVersionMinInfo
|
||||
}
|
||||
|
||||
export type IndicesResolveClusterResponse = Record<ClusterAlias, IndicesResolveClusterResolveClusterInfo>
|
||||
|
||||
export interface IndicesResolveIndexRequest extends RequestBase {
|
||||
name: Names
|
||||
expand_wildcards?: ExpandWildcards
|
||||
@ -11263,6 +11327,80 @@ export interface IndicesValidateQueryResponse {
|
||||
error?: string
|
||||
}
|
||||
|
||||
export type InferenceDenseByteVector = byte[]
|
||||
|
||||
export type InferenceDenseVector = float[]
|
||||
|
||||
export interface InferenceInferenceResult {
|
||||
text_embedding_bytes?: InferenceTextEmbeddingByteResult[]
|
||||
text_embedding?: InferenceTextEmbeddingResult[]
|
||||
sparse_embedding?: InferenceSparseEmbeddingResult[]
|
||||
}
|
||||
|
||||
export interface InferenceModelConfig {
|
||||
service: string
|
||||
service_settings: InferenceServiceSettings
|
||||
task_settings: InferenceTaskSettings
|
||||
}
|
||||
|
||||
export interface InferenceModelConfigContainer extends InferenceModelConfig {
|
||||
model_id: string
|
||||
task_type: InferenceTaskType
|
||||
}
|
||||
|
||||
export type InferenceServiceSettings = any
|
||||
|
||||
export interface InferenceSparseEmbeddingResult {
|
||||
embedding: InferenceSparseVector
|
||||
}
|
||||
|
||||
export type InferenceSparseVector = Record<string, float>
|
||||
|
||||
export type InferenceTaskSettings = any
|
||||
|
||||
export type InferenceTaskType = 'sparse_embedding' | 'text_embedding'
|
||||
|
||||
export interface InferenceTextEmbeddingByteResult {
|
||||
embedding: InferenceDenseByteVector
|
||||
}
|
||||
|
||||
export interface InferenceTextEmbeddingResult {
|
||||
embedding: InferenceDenseVector
|
||||
}
|
||||
|
||||
export interface InferenceDeleteModelRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
}
|
||||
|
||||
export type InferenceDeleteModelResponse = AcknowledgedResponseBase
|
||||
|
||||
export interface InferenceGetModelRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
}
|
||||
|
||||
export interface InferenceGetModelResponse {
|
||||
models: InferenceModelConfigContainer[]
|
||||
}
|
||||
|
||||
export interface InferenceInferenceRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
input: string | string[]
|
||||
task_settings?: InferenceTaskSettings
|
||||
}
|
||||
|
||||
export type InferenceInferenceResponse = InferenceInferenceResult
|
||||
|
||||
export interface InferencePutModelRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
model_config?: InferenceModelConfig
|
||||
}
|
||||
|
||||
export type InferencePutModelResponse = InferenceModelConfigContainer
|
||||
|
||||
export interface IngestAppendProcessor extends IngestProcessorBase {
|
||||
field: Field
|
||||
value: any[]
|
||||
@ -11276,6 +11414,7 @@ export interface IngestAttachmentProcessor extends IngestProcessorBase {
|
||||
indexed_chars_field?: Field
|
||||
properties?: string[]
|
||||
target_field?: Field
|
||||
remove_binary?: boolean
|
||||
resource_name?: string
|
||||
}
|
||||
|
||||
@ -11456,6 +11595,7 @@ export interface IngestPipeline {
|
||||
on_failure?: IngestProcessorContainer[]
|
||||
processors?: IngestProcessorContainer[]
|
||||
version?: VersionNumber
|
||||
_meta: Metadata
|
||||
}
|
||||
|
||||
export interface IngestPipelineConfig {
|
||||
@ -11498,7 +11638,8 @@ export interface IngestProcessorContainer {
|
||||
lowercase?: IngestLowercaseProcessor
|
||||
remove?: IngestRemoveProcessor
|
||||
rename?: IngestRenameProcessor
|
||||
script?: Script
|
||||
reroute?: IngestRerouteProcessor
|
||||
script?: IngestScriptProcessor
|
||||
set?: IngestSetProcessor
|
||||
sort?: IngestSortProcessor
|
||||
split?: IngestSplitProcessor
|
||||
@ -11525,6 +11666,19 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
|
||||
target_field: Field
|
||||
}
|
||||
|
||||
export interface IngestRerouteProcessor extends IngestProcessorBase {
|
||||
destination?: string
|
||||
dataset?: string | string[]
|
||||
namespace?: string | string[]
|
||||
}
|
||||
|
||||
export interface IngestScriptProcessor extends IngestProcessorBase {
|
||||
id?: Id
|
||||
lang?: string
|
||||
params?: Record<string, any>
|
||||
source?: string
|
||||
}
|
||||
|
||||
export interface IngestSetProcessor extends IngestProcessorBase {
|
||||
copy_from?: Field
|
||||
field: Field
|
||||
@ -12969,6 +13123,7 @@ export interface MlTrainedModelConfig {
|
||||
metadata?: MlTrainedModelConfigMetadata
|
||||
model_size_bytes?: ByteSize
|
||||
location?: MlTrainedModelLocation
|
||||
prefix_strings?: MlTrainedModelPrefixStrings
|
||||
}
|
||||
|
||||
export interface MlTrainedModelConfigInput {
|
||||
@ -13056,6 +13211,11 @@ export interface MlTrainedModelLocationIndex {
|
||||
name: IndexName
|
||||
}
|
||||
|
||||
export interface MlTrainedModelPrefixStrings {
|
||||
ingest: string
|
||||
search: string
|
||||
}
|
||||
|
||||
export interface MlTrainedModelSizeStats {
|
||||
model_size_bytes: ByteSize
|
||||
required_native_memory_bytes: integer
|
||||
@ -13851,6 +14011,7 @@ export interface MlPutDatafeedRequest extends RequestBase {
|
||||
delayed_data_check_config?: MlDelayedDataCheckConfig
|
||||
frequency?: Duration
|
||||
indices?: Indices
|
||||
/** @alias indices */
|
||||
indexes?: Indices
|
||||
indices_options?: IndicesOptions
|
||||
job_id?: Id
|
||||
@ -14185,6 +14346,7 @@ export interface MlUpdateDatafeedRequest extends RequestBase {
|
||||
delayed_data_check_config?: MlDelayedDataCheckConfig
|
||||
frequency?: Duration
|
||||
indices?: string[]
|
||||
/** @alias indices */
|
||||
indexes?: string[]
|
||||
indices_options?: IndicesOptions
|
||||
job_id?: Id
|
||||
@ -14874,9 +15036,13 @@ export interface NodesInfoNodeInfoClient {
|
||||
type: string
|
||||
}
|
||||
|
||||
export interface NodesInfoNodeInfoDiscover {
|
||||
seed_hosts: string
|
||||
export interface NodesInfoNodeInfoDiscoverKeys {
|
||||
seed_hosts?: string[]
|
||||
type?: string
|
||||
seed_providers?: string[]
|
||||
}
|
||||
export type NodesInfoNodeInfoDiscover = NodesInfoNodeInfoDiscoverKeys
|
||||
& { [property: string]: any }
|
||||
|
||||
export interface NodesInfoNodeInfoHttp {
|
||||
bound_address: string[]
|
||||
@ -14942,9 +15108,9 @@ export interface NodesInfoNodeInfoOSCPU {
|
||||
}
|
||||
|
||||
export interface NodesInfoNodeInfoPath {
|
||||
logs: string
|
||||
home: string
|
||||
repo: string[]
|
||||
logs?: string
|
||||
home?: string
|
||||
repo?: string[]
|
||||
data?: string[]
|
||||
}
|
||||
|
||||
@ -14972,7 +15138,7 @@ export interface NodesInfoNodeInfoSearchRemote {
|
||||
export interface NodesInfoNodeInfoSettings {
|
||||
cluster: NodesInfoNodeInfoSettingsCluster
|
||||
node: NodesInfoNodeInfoSettingsNode
|
||||
path: NodesInfoNodeInfoPath
|
||||
path?: NodesInfoNodeInfoPath
|
||||
repositories?: NodesInfoNodeInfoRepositories
|
||||
discovery?: NodesInfoNodeInfoDiscover
|
||||
action?: NodesInfoNodeInfoAction
|
||||
@ -14991,7 +15157,7 @@ export interface NodesInfoNodeInfoSettingsCluster {
|
||||
name: Name
|
||||
routing?: IndicesIndexRouting
|
||||
election: NodesInfoNodeInfoSettingsClusterElection
|
||||
initial_master_nodes?: string
|
||||
initial_master_nodes?: string[]
|
||||
deprecation_indexing?: NodesInfoDeprecationIndexing
|
||||
}
|
||||
|
||||
@ -15454,6 +15620,7 @@ export interface RollupRollupSearchRequest extends RequestBase {
|
||||
rest_total_hits_as_int?: boolean
|
||||
typed_keys?: boolean
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
query?: QueryDslQueryContainer
|
||||
size?: integer
|
||||
@ -15679,11 +15846,9 @@ export interface SecurityCreatedStatus {
|
||||
}
|
||||
|
||||
export interface SecurityFieldRule {
|
||||
username?: Name
|
||||
username?: Names
|
||||
dn?: Names
|
||||
groups?: Names
|
||||
metadata?: any
|
||||
realm?: SecurityRealm
|
||||
}
|
||||
|
||||
export interface SecurityFieldSecurity {
|
||||
@ -15713,10 +15878,6 @@ export interface SecurityManageUserPrivileges {
|
||||
applications: string[]
|
||||
}
|
||||
|
||||
export interface SecurityRealm {
|
||||
name: Name
|
||||
}
|
||||
|
||||
export interface SecurityRealmInfo {
|
||||
name: Name
|
||||
type: string
|
||||
@ -15749,7 +15910,7 @@ export interface SecurityRoleMapping {
|
||||
metadata: Metadata
|
||||
roles: string[]
|
||||
rules: SecurityRoleMappingRule
|
||||
role_templates?: SecurityGetRoleRoleTemplate[]
|
||||
role_templates?: SecurityRoleTemplate[]
|
||||
}
|
||||
|
||||
export interface SecurityRoleMappingRule {
|
||||
@ -15759,6 +15920,11 @@ export interface SecurityRoleMappingRule {
|
||||
except?: SecurityRoleMappingRule
|
||||
}
|
||||
|
||||
export interface SecurityRoleTemplate {
|
||||
format?: SecurityTemplateFormat
|
||||
template: Script
|
||||
}
|
||||
|
||||
export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer
|
||||
|
||||
export interface SecurityRoleTemplateInlineScript extends ScriptBase {
|
||||
@ -15773,6 +15939,8 @@ export interface SecurityRoleTemplateQuery {
|
||||
|
||||
export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId
|
||||
|
||||
export type SecurityTemplateFormat = 'string' | 'json'
|
||||
|
||||
export interface SecurityTransientMetadataConfig {
|
||||
enabled: boolean
|
||||
}
|
||||
@ -16063,6 +16231,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
|
||||
realm_name?: Name
|
||||
username?: Username
|
||||
with_limited_by?: boolean
|
||||
active_only?: boolean
|
||||
}
|
||||
|
||||
export interface SecurityGetApiKeyResponse {
|
||||
@ -16097,17 +16266,10 @@ export interface SecurityGetRoleRole {
|
||||
run_as: string[]
|
||||
transient_metadata: SecurityTransientMetadataConfig
|
||||
applications: SecurityApplicationPrivileges[]
|
||||
role_templates?: SecurityGetRoleRoleTemplate[]
|
||||
role_templates?: SecurityRoleTemplate[]
|
||||
global?: Record<string, Record<string, Record<string, string[]>>>
|
||||
}
|
||||
|
||||
export interface SecurityGetRoleRoleTemplate {
|
||||
format?: SecurityGetRoleTemplateFormat
|
||||
template: Script
|
||||
}
|
||||
|
||||
export type SecurityGetRoleTemplateFormat = 'string' | 'json'
|
||||
|
||||
export interface SecurityGetRoleMappingRequest extends RequestBase {
|
||||
name?: Names
|
||||
}
|
||||
@ -16366,6 +16528,7 @@ export interface SecurityPutRoleMappingRequest extends RequestBase {
|
||||
enabled?: boolean
|
||||
metadata?: Metadata
|
||||
roles?: string[]
|
||||
role_templates?: SecurityRoleTemplate[]
|
||||
rules?: SecurityRoleMappingRule
|
||||
run_as?: string[]
|
||||
}
|
||||
@ -16497,6 +16660,7 @@ export interface SecurityUpdateApiKeyRequest extends RequestBase {
|
||||
id: Id
|
||||
role_descriptors?: Record<string, SecurityRoleDescriptor>
|
||||
metadata?: Metadata
|
||||
expiration?: Duration
|
||||
}
|
||||
|
||||
export interface SecurityUpdateApiKeyResponse {
|
||||
@ -17180,7 +17344,7 @@ export interface SynonymsPutSynonymResponse {
|
||||
export interface SynonymsPutSynonymRuleRequest extends RequestBase {
|
||||
set_id: Id
|
||||
rule_id: Id
|
||||
synonyms: SynonymsSynonymString[]
|
||||
synonyms: SynonymsSynonymString
|
||||
}
|
||||
|
||||
export type SynonymsPutSynonymRuleResponse = SynonymsSynonymsUpdateResult
|
||||
@ -17278,6 +17442,7 @@ export interface TextStructureFindStructureRequest<TJsonDocument = unknown> {
|
||||
charset?: string
|
||||
column_names?: string
|
||||
delimiter?: string
|
||||
ecs_compatibility?: string
|
||||
explain?: boolean
|
||||
format?: string
|
||||
grok_pattern?: string
|
||||
@ -17322,6 +17487,27 @@ export interface TextStructureFindStructureTopHit {
|
||||
value: any
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternMatchedField {
|
||||
match: string
|
||||
offset: integer
|
||||
length: integer
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternMatchedText {
|
||||
matched: boolean
|
||||
fields?: Record<string, TextStructureTestGrokPatternMatchedField[]>
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternRequest extends RequestBase {
|
||||
ecs_compatibility?: string
|
||||
grok_pattern: string
|
||||
text: string[]
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternResponse {
|
||||
matches: TextStructureTestGrokPatternMatchedText[]
|
||||
}
|
||||
|
||||
export interface TransformDestination {
|
||||
index?: IndexName
|
||||
pipeline?: string
|
||||
|
||||
@ -365,6 +365,7 @@ export interface FieldCapsRequest extends RequestBase {
|
||||
include_unmapped?: boolean
|
||||
filters?: string
|
||||
types?: string[]
|
||||
include_empty_fields?: boolean
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
fields?: Fields
|
||||
@ -1200,6 +1201,7 @@ export interface SearchRequest extends RequestBase {
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
collapse?: SearchFieldCollapse
|
||||
explain?: boolean
|
||||
@ -2146,6 +2148,13 @@ export interface ElasticsearchVersionInfo {
|
||||
number: string
|
||||
}
|
||||
|
||||
export interface ElasticsearchVersionMinInfo {
|
||||
build_flavor: string
|
||||
minimum_index_compatibility_version: VersionString
|
||||
minimum_wire_compatibility_version: VersionString
|
||||
number: string
|
||||
}
|
||||
|
||||
export interface EmptyObject {
|
||||
}
|
||||
|
||||
@ -2167,6 +2176,8 @@ export interface ErrorResponseBase {
|
||||
status: integer
|
||||
}
|
||||
|
||||
export type EsqlColumns = ArrayBuffer
|
||||
|
||||
export type ExpandWildcard = 'all' | 'open' | 'closed' | 'hidden' | 'none'
|
||||
|
||||
export type ExpandWildcards = ExpandWildcard | ExpandWildcard[]
|
||||
@ -2348,6 +2359,7 @@ export interface KnnQuery {
|
||||
boost?: float
|
||||
filter?: QueryDslQueryContainer | QueryDslQueryContainer[]
|
||||
similarity?: float
|
||||
inner_hits?: SearchInnerHits
|
||||
}
|
||||
|
||||
export interface LatLonGeoLocation {
|
||||
@ -2359,8 +2371,6 @@ export type Level = 'cluster' | 'indices' | 'shards'
|
||||
|
||||
export type LifecycleOperationMode = 'RUNNING' | 'STOPPING' | 'STOPPED'
|
||||
|
||||
export type ManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged'
|
||||
|
||||
export type MapboxVectorTiles = ArrayBuffer
|
||||
|
||||
export interface MergesStats {
|
||||
@ -2540,6 +2550,8 @@ export interface RrfRank {
|
||||
window_size?: long
|
||||
}
|
||||
|
||||
export type ScalarValue = long | double | string | boolean | null
|
||||
|
||||
export interface ScoreSort {
|
||||
order?: SortOrder
|
||||
}
|
||||
@ -4581,11 +4593,11 @@ export type AnalysisNormalizer = AnalysisLowercaseNormalizer | AnalysisCustomNor
|
||||
|
||||
export interface AnalysisPathHierarchyTokenizer extends AnalysisTokenizerBase {
|
||||
type: 'path_hierarchy'
|
||||
buffer_size: SpecUtilsStringified<integer>
|
||||
delimiter: string
|
||||
replacement: string
|
||||
reverse: SpecUtilsStringified<boolean>
|
||||
skip: SpecUtilsStringified<integer>
|
||||
buffer_size?: SpecUtilsStringified<integer>
|
||||
delimiter?: string
|
||||
replacement?: string
|
||||
reverse?: SpecUtilsStringified<boolean>
|
||||
skip?: SpecUtilsStringified<integer>
|
||||
}
|
||||
|
||||
export interface AnalysisPatternAnalyzer {
|
||||
@ -4761,7 +4773,7 @@ export interface AnalysisTokenFilterBase {
|
||||
version?: VersionString
|
||||
}
|
||||
|
||||
export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuTokenizer | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter
|
||||
export type AnalysisTokenFilterDefinition = AnalysisAsciiFoldingTokenFilter | AnalysisCommonGramsTokenFilter | AnalysisConditionTokenFilter | AnalysisDelimitedPayloadTokenFilter | AnalysisEdgeNGramTokenFilter | AnalysisElisionTokenFilter | AnalysisFingerprintTokenFilter | AnalysisHunspellTokenFilter | AnalysisHyphenationDecompounderTokenFilter | AnalysisKeepTypesTokenFilter | AnalysisKeepWordsTokenFilter | AnalysisKeywordMarkerTokenFilter | AnalysisKStemTokenFilter | AnalysisLengthTokenFilter | AnalysisLimitTokenCountTokenFilter | AnalysisLowercaseTokenFilter | AnalysisMultiplexerTokenFilter | AnalysisNGramTokenFilter | AnalysisNoriPartOfSpeechTokenFilter | AnalysisPatternCaptureTokenFilter | AnalysisPatternReplaceTokenFilter | AnalysisPorterStemTokenFilter | AnalysisPredicateTokenFilter | AnalysisRemoveDuplicatesTokenFilter | AnalysisReverseTokenFilter | AnalysisShingleTokenFilter | AnalysisSnowballTokenFilter | AnalysisStemmerOverrideTokenFilter | AnalysisStemmerTokenFilter | AnalysisStopTokenFilter | AnalysisSynonymGraphTokenFilter | AnalysisSynonymTokenFilter | AnalysisTrimTokenFilter | AnalysisTruncateTokenFilter | AnalysisUniqueTokenFilter | AnalysisUppercaseTokenFilter | AnalysisWordDelimiterGraphTokenFilter | AnalysisWordDelimiterTokenFilter | AnalysisKuromojiStemmerTokenFilter | AnalysisKuromojiReadingFormTokenFilter | AnalysisKuromojiPartOfSpeechTokenFilter | AnalysisIcuCollationTokenFilter | AnalysisIcuFoldingTokenFilter | AnalysisIcuNormalizationTokenFilter | AnalysisIcuTransformTokenFilter | AnalysisPhoneticTokenFilter | AnalysisDictionaryDecompounderTokenFilter
|
||||
|
||||
export type AnalysisTokenizer = string | AnalysisTokenizerDefinition
|
||||
|
||||
@ -5169,7 +5181,7 @@ export interface MappingPointProperty extends MappingDocValuesPropertyBase {
|
||||
type: 'point'
|
||||
}
|
||||
|
||||
export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty
|
||||
export type MappingProperty = MappingBinaryProperty | MappingBooleanProperty | MappingDynamicProperty | MappingJoinProperty | MappingKeywordProperty | MappingMatchOnlyTextProperty | MappingPercolatorProperty | MappingRankFeatureProperty | MappingRankFeaturesProperty | MappingSearchAsYouTypeProperty | MappingTextProperty | MappingVersionProperty | MappingWildcardProperty | MappingDateNanosProperty | MappingDateProperty | MappingAggregateMetricDoubleProperty | MappingDenseVectorProperty | MappingSparseVectorProperty | MappingFlattenedProperty | MappingNestedProperty | MappingObjectProperty | MappingCompletionProperty | MappingConstantKeywordProperty | MappingFieldAliasProperty | MappingHistogramProperty | MappingIpProperty | MappingMurmur3HashProperty | MappingTokenCountProperty | MappingGeoPointProperty | MappingGeoShapeProperty | MappingPointProperty | MappingShapeProperty | MappingByteNumberProperty | MappingDoubleNumberProperty | MappingFloatNumberProperty | MappingHalfFloatNumberProperty | MappingIntegerNumberProperty | MappingLongNumberProperty | MappingScaledFloatNumberProperty | MappingShortNumberProperty | MappingUnsignedLongNumberProperty | MappingDateRangeProperty | MappingDoubleRangeProperty | MappingFloatRangeProperty | MappingIntegerRangeProperty | MappingIpRangeProperty | MappingLongRangeProperty
|
||||
|
||||
export interface MappingPropertyBase {
|
||||
meta?: Record<string, string>
|
||||
@ -5263,6 +5275,10 @@ export interface MappingSourceField {
|
||||
|
||||
export type MappingSourceFieldMode = 'disabled' | 'stored' | 'synthetic'
|
||||
|
||||
export interface MappingSparseVectorProperty extends MappingPropertyBase {
|
||||
type: 'sparse_vector'
|
||||
}
|
||||
|
||||
export interface MappingSuggestContext {
|
||||
name: Name
|
||||
path?: Field
|
||||
@ -5505,9 +5521,10 @@ export interface QueryDslGeoDistanceQueryKeys extends QueryDslQueryBase {
|
||||
distance: Distance
|
||||
distance_type?: GeoDistanceType
|
||||
validation_method?: QueryDslGeoValidationMethod
|
||||
ignore_unmapped?: boolean
|
||||
}
|
||||
export type QueryDslGeoDistanceQuery = QueryDslGeoDistanceQueryKeys
|
||||
& { [property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | float | string }
|
||||
& { [property: string]: GeoLocation | Distance | GeoDistanceType | QueryDslGeoValidationMethod | boolean | float | string }
|
||||
|
||||
export type QueryDslGeoExecution = 'memory' | 'indexed'
|
||||
|
||||
@ -5819,6 +5836,7 @@ export interface QueryDslQueryContainer {
|
||||
has_parent?: QueryDslHasParentQuery
|
||||
ids?: QueryDslIdsQuery
|
||||
intervals?: Partial<Record<Field, QueryDslIntervalsQuery>>
|
||||
knn?: KnnQuery
|
||||
match?: Partial<Record<Field, QueryDslMatchQuery | string | float | boolean>>
|
||||
match_all?: QueryDslMatchAllQuery
|
||||
match_bool_prefix?: Partial<Record<Field, QueryDslMatchBoolPrefixQuery | string>>
|
||||
@ -5854,6 +5872,7 @@ export interface QueryDslQueryContainer {
|
||||
terms?: QueryDslTermsQuery
|
||||
terms_set?: Partial<Record<Field, QueryDslTermsSetQuery>>
|
||||
text_expansion?: Partial<Record<Field, QueryDslTextExpansionQuery>>
|
||||
weighted_tokens?: Partial<Record<Field, QueryDslWeightedTokensQuery>>
|
||||
wildcard?: Partial<Record<Field, QueryDslWildcardQuery | string>>
|
||||
wrapper?: QueryDslWrapperQuery
|
||||
type?: QueryDslTypeQuery
|
||||
@ -6076,14 +6095,26 @@ export interface QueryDslTermsSetQuery extends QueryDslQueryBase {
|
||||
export interface QueryDslTextExpansionQuery extends QueryDslQueryBase {
|
||||
model_id: string
|
||||
model_text: string
|
||||
pruning_config?: QueryDslTokenPruningConfig
|
||||
}
|
||||
|
||||
export type QueryDslTextQueryType = 'best_fields' | 'most_fields' | 'cross_fields' | 'phrase' | 'phrase_prefix' | 'bool_prefix'
|
||||
|
||||
export interface QueryDslTokenPruningConfig {
|
||||
tokens_freq_ratio_threshold?: integer
|
||||
tokens_weight_threshold?: float
|
||||
only_score_pruned_tokens?: boolean
|
||||
}
|
||||
|
||||
export interface QueryDslTypeQuery extends QueryDslQueryBase {
|
||||
value: string
|
||||
}
|
||||
|
||||
export interface QueryDslWeightedTokensQuery extends QueryDslQueryBase {
|
||||
tokens: Record<string, float>
|
||||
pruning_config?: QueryDslTokenPruningConfig
|
||||
}
|
||||
|
||||
export interface QueryDslWildcardQuery extends QueryDslQueryBase {
|
||||
case_insensitive?: boolean
|
||||
rewrite?: MultiTermQueryRewrite
|
||||
@ -6194,6 +6225,7 @@ export interface AsyncSearchSubmitRequest extends RequestBase {
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
collapse?: SearchFieldCollapse
|
||||
explain?: boolean
|
||||
@ -9053,7 +9085,7 @@ export interface EnrichPolicy {
|
||||
enrich_fields: Fields
|
||||
indices: Indices
|
||||
match_field: Field
|
||||
query?: string
|
||||
query?: QueryDslQueryContainer
|
||||
name?: Name
|
||||
elasticsearch_version?: string
|
||||
}
|
||||
@ -9218,6 +9250,21 @@ export type EqlSearchResponse<TEvent = unknown> = EqlEqlSearchResponseBase<TEven
|
||||
|
||||
export type EqlSearchResultPosition = 'tail' | 'head'
|
||||
|
||||
export interface EsqlQueryRequest extends RequestBase {
|
||||
format?: string
|
||||
delimiter?: string
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
columnar?: boolean
|
||||
filter?: QueryDslQueryContainer
|
||||
locale?: string
|
||||
params?: ScalarValue[]
|
||||
query: string
|
||||
}
|
||||
}
|
||||
|
||||
export type EsqlQueryResponse = EsqlColumns
|
||||
|
||||
export interface FeaturesFeature {
|
||||
name: string
|
||||
description: string
|
||||
@ -9310,6 +9357,7 @@ export interface FleetSearchRequest extends RequestBase {
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
collapse?: SearchFieldCollapse
|
||||
explain?: boolean
|
||||
@ -9648,7 +9696,7 @@ export interface IndicesDataStream {
|
||||
generation: integer
|
||||
hidden: boolean
|
||||
ilm_policy?: Name
|
||||
next_generation_managed_by: ManagedBy
|
||||
next_generation_managed_by: IndicesManagedBy
|
||||
prefer_ilm: boolean
|
||||
indices: IndicesDataStreamIndex[]
|
||||
lifecycle?: IndicesDataStreamLifecycleWithRollover
|
||||
@ -9664,7 +9712,7 @@ export interface IndicesDataStreamIndex {
|
||||
index_name: IndexName
|
||||
index_uuid: Uuid
|
||||
ilm_policy?: Name
|
||||
managed_by: ManagedBy
|
||||
managed_by: IndicesManagedBy
|
||||
prefer_ilm: boolean
|
||||
}
|
||||
|
||||
@ -9820,7 +9868,6 @@ export interface IndicesIndexSettingsKeys {
|
||||
analysis?: IndicesIndexSettingsAnalysis
|
||||
settings?: IndicesIndexSettings
|
||||
time_series?: IndicesIndexSettingsTimeSeries
|
||||
shards?: integer
|
||||
queries?: IndicesQueries
|
||||
similarity?: IndicesSettingsSimilarity
|
||||
mapping?: IndicesMappingLimitSettings
|
||||
@ -9913,6 +9960,8 @@ export interface IndicesIndexingSlowlogTresholds {
|
||||
index?: IndicesSlowlogTresholdLevels
|
||||
}
|
||||
|
||||
export type IndicesManagedBy = 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged'
|
||||
|
||||
export interface IndicesMappingLimitSettings {
|
||||
coerce?: boolean
|
||||
total_fields?: IndicesMappingLimitSettingsTotalFields
|
||||
@ -10943,6 +10992,24 @@ export interface IndicesReloadSearchAnalyzersRequest extends RequestBase {
|
||||
|
||||
export type IndicesReloadSearchAnalyzersResponse = IndicesReloadSearchAnalyzersReloadResult
|
||||
|
||||
export interface IndicesResolveClusterRequest extends RequestBase {
|
||||
name: Names
|
||||
allow_no_indices?: boolean
|
||||
expand_wildcards?: ExpandWildcards
|
||||
ignore_throttled?: boolean
|
||||
ignore_unavailable?: boolean
|
||||
}
|
||||
|
||||
export interface IndicesResolveClusterResolveClusterInfo {
|
||||
connected: boolean
|
||||
skip_unavailable: boolean
|
||||
matching_indices?: boolean
|
||||
error?: string
|
||||
version?: ElasticsearchVersionMinInfo
|
||||
}
|
||||
|
||||
export type IndicesResolveClusterResponse = Record<ClusterAlias, IndicesResolveClusterResolveClusterInfo>
|
||||
|
||||
export interface IndicesResolveIndexRequest extends RequestBase {
|
||||
name: Names
|
||||
expand_wildcards?: ExpandWildcards
|
||||
@ -11434,6 +11501,84 @@ export interface IndicesValidateQueryResponse {
|
||||
error?: string
|
||||
}
|
||||
|
||||
export type InferenceDenseByteVector = byte[]
|
||||
|
||||
export type InferenceDenseVector = float[]
|
||||
|
||||
export interface InferenceInferenceResult {
|
||||
text_embedding_bytes?: InferenceTextEmbeddingByteResult[]
|
||||
text_embedding?: InferenceTextEmbeddingResult[]
|
||||
sparse_embedding?: InferenceSparseEmbeddingResult[]
|
||||
}
|
||||
|
||||
export interface InferenceModelConfig {
|
||||
service: string
|
||||
service_settings: InferenceServiceSettings
|
||||
task_settings: InferenceTaskSettings
|
||||
}
|
||||
|
||||
export interface InferenceModelConfigContainer extends InferenceModelConfig {
|
||||
model_id: string
|
||||
task_type: InferenceTaskType
|
||||
}
|
||||
|
||||
export type InferenceServiceSettings = any
|
||||
|
||||
export interface InferenceSparseEmbeddingResult {
|
||||
embedding: InferenceSparseVector
|
||||
}
|
||||
|
||||
export type InferenceSparseVector = Record<string, float>
|
||||
|
||||
export type InferenceTaskSettings = any
|
||||
|
||||
export type InferenceTaskType = 'sparse_embedding' | 'text_embedding'
|
||||
|
||||
export interface InferenceTextEmbeddingByteResult {
|
||||
embedding: InferenceDenseByteVector
|
||||
}
|
||||
|
||||
export interface InferenceTextEmbeddingResult {
|
||||
embedding: InferenceDenseVector
|
||||
}
|
||||
|
||||
export interface InferenceDeleteModelRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
}
|
||||
|
||||
export type InferenceDeleteModelResponse = AcknowledgedResponseBase
|
||||
|
||||
export interface InferenceGetModelRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
}
|
||||
|
||||
export interface InferenceGetModelResponse {
|
||||
models: InferenceModelConfigContainer[]
|
||||
}
|
||||
|
||||
export interface InferenceInferenceRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
input: string | string[]
|
||||
task_settings?: InferenceTaskSettings
|
||||
}
|
||||
}
|
||||
|
||||
export type InferenceInferenceResponse = InferenceInferenceResult
|
||||
|
||||
export interface InferencePutModelRequest extends RequestBase {
|
||||
task_type?: InferenceTaskType
|
||||
inference_id: Id
|
||||
/** @deprecated The use of the 'body' key has been deprecated, use 'model_config' instead. */
|
||||
body?: InferenceModelConfig
|
||||
}
|
||||
|
||||
export type InferencePutModelResponse = InferenceModelConfigContainer
|
||||
|
||||
export interface IngestAppendProcessor extends IngestProcessorBase {
|
||||
field: Field
|
||||
value: any[]
|
||||
@ -11447,6 +11592,7 @@ export interface IngestAttachmentProcessor extends IngestProcessorBase {
|
||||
indexed_chars_field?: Field
|
||||
properties?: string[]
|
||||
target_field?: Field
|
||||
remove_binary?: boolean
|
||||
resource_name?: string
|
||||
}
|
||||
|
||||
@ -11627,6 +11773,7 @@ export interface IngestPipeline {
|
||||
on_failure?: IngestProcessorContainer[]
|
||||
processors?: IngestProcessorContainer[]
|
||||
version?: VersionNumber
|
||||
_meta: Metadata
|
||||
}
|
||||
|
||||
export interface IngestPipelineConfig {
|
||||
@ -11669,7 +11816,8 @@ export interface IngestProcessorContainer {
|
||||
lowercase?: IngestLowercaseProcessor
|
||||
remove?: IngestRemoveProcessor
|
||||
rename?: IngestRenameProcessor
|
||||
script?: Script
|
||||
reroute?: IngestRerouteProcessor
|
||||
script?: IngestScriptProcessor
|
||||
set?: IngestSetProcessor
|
||||
sort?: IngestSortProcessor
|
||||
split?: IngestSplitProcessor
|
||||
@ -11696,6 +11844,19 @@ export interface IngestRenameProcessor extends IngestProcessorBase {
|
||||
target_field: Field
|
||||
}
|
||||
|
||||
export interface IngestRerouteProcessor extends IngestProcessorBase {
|
||||
destination?: string
|
||||
dataset?: string | string[]
|
||||
namespace?: string | string[]
|
||||
}
|
||||
|
||||
export interface IngestScriptProcessor extends IngestProcessorBase {
|
||||
id?: Id
|
||||
lang?: string
|
||||
params?: Record<string, any>
|
||||
source?: string
|
||||
}
|
||||
|
||||
export interface IngestSetProcessor extends IngestProcessorBase {
|
||||
copy_from?: Field
|
||||
field: Field
|
||||
@ -13150,6 +13311,7 @@ export interface MlTrainedModelConfig {
|
||||
metadata?: MlTrainedModelConfigMetadata
|
||||
model_size_bytes?: ByteSize
|
||||
location?: MlTrainedModelLocation
|
||||
prefix_strings?: MlTrainedModelPrefixStrings
|
||||
}
|
||||
|
||||
export interface MlTrainedModelConfigInput {
|
||||
@ -13237,6 +13399,11 @@ export interface MlTrainedModelLocationIndex {
|
||||
name: IndexName
|
||||
}
|
||||
|
||||
export interface MlTrainedModelPrefixStrings {
|
||||
ingest: string
|
||||
search: string
|
||||
}
|
||||
|
||||
export interface MlTrainedModelSizeStats {
|
||||
model_size_bytes: ByteSize
|
||||
required_native_memory_bytes: integer
|
||||
@ -14098,6 +14265,7 @@ export interface MlPutDatafeedRequest extends RequestBase {
|
||||
delayed_data_check_config?: MlDelayedDataCheckConfig
|
||||
frequency?: Duration
|
||||
indices?: Indices
|
||||
/** @alias indices */
|
||||
indexes?: Indices
|
||||
indices_options?: IndicesOptions
|
||||
job_id?: Id
|
||||
@ -14462,6 +14630,7 @@ export interface MlUpdateDatafeedRequest extends RequestBase {
|
||||
delayed_data_check_config?: MlDelayedDataCheckConfig
|
||||
frequency?: Duration
|
||||
indices?: string[]
|
||||
/** @alias indices */
|
||||
indexes?: string[]
|
||||
indices_options?: IndicesOptions
|
||||
job_id?: Id
|
||||
@ -15166,9 +15335,13 @@ export interface NodesInfoNodeInfoClient {
|
||||
type: string
|
||||
}
|
||||
|
||||
export interface NodesInfoNodeInfoDiscover {
|
||||
seed_hosts: string
|
||||
export interface NodesInfoNodeInfoDiscoverKeys {
|
||||
seed_hosts?: string[]
|
||||
type?: string
|
||||
seed_providers?: string[]
|
||||
}
|
||||
export type NodesInfoNodeInfoDiscover = NodesInfoNodeInfoDiscoverKeys
|
||||
& { [property: string]: any }
|
||||
|
||||
export interface NodesInfoNodeInfoHttp {
|
||||
bound_address: string[]
|
||||
@ -15234,9 +15407,9 @@ export interface NodesInfoNodeInfoOSCPU {
|
||||
}
|
||||
|
||||
export interface NodesInfoNodeInfoPath {
|
||||
logs: string
|
||||
home: string
|
||||
repo: string[]
|
||||
logs?: string
|
||||
home?: string
|
||||
repo?: string[]
|
||||
data?: string[]
|
||||
}
|
||||
|
||||
@ -15264,7 +15437,7 @@ export interface NodesInfoNodeInfoSearchRemote {
|
||||
export interface NodesInfoNodeInfoSettings {
|
||||
cluster: NodesInfoNodeInfoSettingsCluster
|
||||
node: NodesInfoNodeInfoSettingsNode
|
||||
path: NodesInfoNodeInfoPath
|
||||
path?: NodesInfoNodeInfoPath
|
||||
repositories?: NodesInfoNodeInfoRepositories
|
||||
discovery?: NodesInfoNodeInfoDiscover
|
||||
action?: NodesInfoNodeInfoAction
|
||||
@ -15283,7 +15456,7 @@ export interface NodesInfoNodeInfoSettingsCluster {
|
||||
name: Name
|
||||
routing?: IndicesIndexRouting
|
||||
election: NodesInfoNodeInfoSettingsClusterElection
|
||||
initial_master_nodes?: string
|
||||
initial_master_nodes?: string[]
|
||||
deprecation_indexing?: NodesInfoDeprecationIndexing
|
||||
}
|
||||
|
||||
@ -15757,6 +15930,7 @@ export interface RollupRollupSearchRequest extends RequestBase {
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
aggregations?: Record<string, AggregationsAggregationContainer>
|
||||
/** @alias aggregations */
|
||||
aggs?: Record<string, AggregationsAggregationContainer>
|
||||
query?: QueryDslQueryContainer
|
||||
size?: integer
|
||||
@ -15990,11 +16164,9 @@ export interface SecurityCreatedStatus {
|
||||
}
|
||||
|
||||
export interface SecurityFieldRule {
|
||||
username?: Name
|
||||
username?: Names
|
||||
dn?: Names
|
||||
groups?: Names
|
||||
metadata?: any
|
||||
realm?: SecurityRealm
|
||||
}
|
||||
|
||||
export interface SecurityFieldSecurity {
|
||||
@ -16024,10 +16196,6 @@ export interface SecurityManageUserPrivileges {
|
||||
applications: string[]
|
||||
}
|
||||
|
||||
export interface SecurityRealm {
|
||||
name: Name
|
||||
}
|
||||
|
||||
export interface SecurityRealmInfo {
|
||||
name: Name
|
||||
type: string
|
||||
@ -16060,7 +16228,7 @@ export interface SecurityRoleMapping {
|
||||
metadata: Metadata
|
||||
roles: string[]
|
||||
rules: SecurityRoleMappingRule
|
||||
role_templates?: SecurityGetRoleRoleTemplate[]
|
||||
role_templates?: SecurityRoleTemplate[]
|
||||
}
|
||||
|
||||
export interface SecurityRoleMappingRule {
|
||||
@ -16070,6 +16238,11 @@ export interface SecurityRoleMappingRule {
|
||||
except?: SecurityRoleMappingRule
|
||||
}
|
||||
|
||||
export interface SecurityRoleTemplate {
|
||||
format?: SecurityTemplateFormat
|
||||
template: Script
|
||||
}
|
||||
|
||||
export type SecurityRoleTemplateInlineQuery = string | QueryDslQueryContainer
|
||||
|
||||
export interface SecurityRoleTemplateInlineScript extends ScriptBase {
|
||||
@ -16084,6 +16257,8 @@ export interface SecurityRoleTemplateQuery {
|
||||
|
||||
export type SecurityRoleTemplateScript = SecurityRoleTemplateInlineScript | SecurityRoleTemplateInlineQuery | StoredScriptId
|
||||
|
||||
export type SecurityTemplateFormat = 'string' | 'json'
|
||||
|
||||
export interface SecurityTransientMetadataConfig {
|
||||
enabled: boolean
|
||||
}
|
||||
@ -16383,6 +16558,7 @@ export interface SecurityGetApiKeyRequest extends RequestBase {
|
||||
realm_name?: Name
|
||||
username?: Username
|
||||
with_limited_by?: boolean
|
||||
active_only?: boolean
|
||||
}
|
||||
|
||||
export interface SecurityGetApiKeyResponse {
|
||||
@ -16417,17 +16593,10 @@ export interface SecurityGetRoleRole {
|
||||
run_as: string[]
|
||||
transient_metadata: SecurityTransientMetadataConfig
|
||||
applications: SecurityApplicationPrivileges[]
|
||||
role_templates?: SecurityGetRoleRoleTemplate[]
|
||||
role_templates?: SecurityRoleTemplate[]
|
||||
global?: Record<string, Record<string, Record<string, string[]>>>
|
||||
}
|
||||
|
||||
export interface SecurityGetRoleRoleTemplate {
|
||||
format?: SecurityGetRoleTemplateFormat
|
||||
template: Script
|
||||
}
|
||||
|
||||
export type SecurityGetRoleTemplateFormat = 'string' | 'json'
|
||||
|
||||
export interface SecurityGetRoleMappingRequest extends RequestBase {
|
||||
name?: Names
|
||||
}
|
||||
@ -16710,6 +16879,7 @@ export interface SecurityPutRoleMappingRequest extends RequestBase {
|
||||
enabled?: boolean
|
||||
metadata?: Metadata
|
||||
roles?: string[]
|
||||
role_templates?: SecurityRoleTemplate[]
|
||||
rules?: SecurityRoleMappingRule
|
||||
run_as?: string[]
|
||||
}
|
||||
@ -16869,6 +17039,7 @@ export interface SecurityUpdateApiKeyRequest extends RequestBase {
|
||||
body?: {
|
||||
role_descriptors?: Record<string, SecurityRoleDescriptor>
|
||||
metadata?: Metadata
|
||||
expiration?: Duration
|
||||
}
|
||||
}
|
||||
|
||||
@ -17588,7 +17759,7 @@ export interface SynonymsPutSynonymRuleRequest extends RequestBase {
|
||||
rule_id: Id
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
synonyms: SynonymsSynonymString[]
|
||||
synonyms: SynonymsSynonymString
|
||||
}
|
||||
}
|
||||
|
||||
@ -17687,6 +17858,7 @@ export interface TextStructureFindStructureRequest<TJsonDocument = unknown> {
|
||||
charset?: string
|
||||
column_names?: string
|
||||
delimiter?: string
|
||||
ecs_compatibility?: string
|
||||
explain?: boolean
|
||||
format?: string
|
||||
grok_pattern?: string
|
||||
@ -17732,6 +17904,30 @@ export interface TextStructureFindStructureTopHit {
|
||||
value: any
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternMatchedField {
|
||||
match: string
|
||||
offset: integer
|
||||
length: integer
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternMatchedText {
|
||||
matched: boolean
|
||||
fields?: Record<string, TextStructureTestGrokPatternMatchedField[]>
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternRequest extends RequestBase {
|
||||
ecs_compatibility?: string
|
||||
/** @deprecated The use of the 'body' key has been deprecated, move the nested keys to the top level object. */
|
||||
body?: {
|
||||
grok_pattern: string
|
||||
text: string[]
|
||||
}
|
||||
}
|
||||
|
||||
export interface TextStructureTestGrokPatternResponse {
|
||||
matches: TextStructureTestGrokPatternMatchedText[]
|
||||
}
|
||||
|
||||
export interface TransformDestination {
|
||||
index?: IndexName
|
||||
pipeline?: string
|
||||
|
||||
Reference in New Issue
Block a user