Skip to content

Commit beaee47

Browse files
Auto-generated code for main (#2001)
1 parent 63b4b4c commit beaee47

File tree

1 file changed

+51
-42
lines changed

1 file changed

+51
-42
lines changed

docs/reference.asciidoc

Lines changed: 51 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,21 @@ client.bulk({ ... })
3838
==== Arguments
3939

4040
* *Request (object):*
41-
** *`index` (Optional, string)*: Default index for items which don't provide one
41+
** *`index` (Optional, string)*: Name of the data stream, index, or index alias to perform bulk actions on.
4242
** *`operations` (Optional, { index, create, update, delete } | { detect_noop, doc, doc_as_upsert, script, scripted_upsert, _source, upsert } | object[])*
43-
** *`pipeline` (Optional, string)*: The pipeline id to preprocess incoming documents with
44-
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If `true` 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` (the default) then do nothing with refreshes.
45-
** *`routing` (Optional, string)*: Specific routing value
46-
** *`_source` (Optional, boolean | string | string[])*: True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request
47-
** *`_source_excludes` (Optional, string | string[])*: Default list of fields to exclude from the returned _source field, can be overridden on each sub-request
48-
** *`_source_includes` (Optional, string | string[])*: Default list of fields to extract and return from the _source field, can be overridden on each sub-request
49-
** *`timeout` (Optional, string | -1 | 0)*: Explicit operation timeout
50-
** *`wait_for_active_shards` (Optional, number | Enum("all" | "index-setting"))*: Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
51-
** *`require_alias` (Optional, boolean)*: Sets require_alias for all incoming documents. Defaults to unset (false)
43+
** *`pipeline` (Optional, string)*: ID of the pipeline to use to preprocess incoming documents.
44+
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
45+
If a final pipeline is configured it will always run, regardless of the value of this parameter.
46+
** *`refresh` (Optional, Enum(true | false | "wait_for"))*: If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
47+
Valid values: `true`, `false`, `wait_for`.
48+
** *`routing` (Optional, string)*: Custom value used to route operations to a specific shard.
49+
** *`_source` (Optional, boolean | string | string[])*: `true` or `false` to return the `_source` field or not, or a list of fields to return.
50+
** *`_source_excludes` (Optional, string | string[])*: A list of source fields to exclude from the response.
51+
** *`_source_includes` (Optional, string | string[])*: A list of source fields to include in the response.
52+
** *`timeout` (Optional, string | -1 | 0)*: Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
53+
** *`wait_for_active_shards` (Optional, number | Enum("all" | "index-setting"))*: The number of shard copies that must be active before proceeding with the operation.
54+
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
55+
** *`require_alias` (Optional, boolean)*: If `true`, the request’s actions must target an index alias.
5256

5357
[discrete]
5458
=== clear_scroll
@@ -63,7 +67,8 @@ client.clearScroll({ ... })
6367
==== Arguments
6468

6569
* *Request (object):*
66-
** *`scroll_id` (Optional, string | string[])*: A list of scroll IDs to clear
70+
** *`scroll_id` (Optional, string | string[])*: List of scroll IDs to clear.
71+
To clear all scroll IDs, use `_all`.
6772

6873
[discrete]
6974
=== close_point_in_time
@@ -78,7 +83,7 @@ client.closePointInTime({ id })
7883
==== Arguments
7984

8085
* *Request (object):*
81-
** *`id` (string)*
86+
** *`id` (string)*: The ID of the point-in-time.
8287

8388
[discrete]
8489
=== count
@@ -623,20 +628,22 @@ client.mtermvectors({ ... })
623628
==== Arguments
624629

625630
* *Request (object):*
626-
** *`index` (Optional, string)*: The index in which the document resides.
627-
** *`docs` (Optional, { _id, _index, routing, _source, stored_fields, version, version_type }[])*
628-
** *`ids` (Optional, string[])*
629-
** *`fields` (Optional, string | string[])*: A list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs".
630-
** *`field_statistics` (Optional, boolean)*: Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
631-
** *`offsets` (Optional, boolean)*: Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
632-
** *`payloads` (Optional, boolean)*: Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
633-
** *`positions` (Optional, boolean)*: Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
634-
** *`preference` (Optional, string)*: Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs".
635-
** *`realtime` (Optional, boolean)*: Specifies if requests are real-time as opposed to near-real-time (default: true).
636-
** *`routing` (Optional, string)*: Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs".
637-
** *`term_statistics` (Optional, boolean)*: Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
638-
** *`version` (Optional, number)*: Explicit version number for concurrency control
639-
** *`version_type` (Optional, Enum("internal" | "external" | "external_gte" | "force"))*: Specific version type
631+
** *`index` (Optional, string)*: Name of the index that contains the documents.
632+
** *`docs` (Optional, { _id, _index, routing, _source, stored_fields, version, version_type }[])*: Array of existing or artificial documents.
633+
** *`ids` (Optional, string[])*: Simplified syntax to specify documents by their ID if they're in the same index.
634+
** *`fields` (Optional, string | string[])*: List or wildcard expressions of fields to include in the statistics.
635+
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
636+
** *`field_statistics` (Optional, boolean)*: If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies.
637+
** *`offsets` (Optional, boolean)*: If `true`, the response includes term offsets.
638+
** *`payloads` (Optional, boolean)*: If `true`, the response includes term payloads.
639+
** *`positions` (Optional, boolean)*: If `true`, the response includes term positions.
640+
** *`preference` (Optional, string)*: Specifies the node or shard the operation should be performed on.
641+
Random by default.
642+
** *`realtime` (Optional, boolean)*: If true, the request is real-time as opposed to near-real-time.
643+
** *`routing` (Optional, string)*: Custom value used to route operations to a specific shard.
644+
** *`term_statistics` (Optional, boolean)*: If true, the response includes term frequency and document frequency.
645+
** *`version` (Optional, number)*: If `true`, returns the document version as part of a hit.
646+
** *`version_type` (Optional, Enum("internal" | "external" | "external_gte" | "force"))*: Specific version type.
640647

641648
[discrete]
642649
=== open_point_in_time
@@ -1106,22 +1113,24 @@ client.termvectors({ index })
11061113
==== Arguments
11071114

11081115
* *Request (object):*
1109-
** *`index` (string)*: The index in which the document resides.
1110-
** *`id` (Optional, string)*: The id of the document, when not specified a doc param should be supplied.
1111-
** *`doc` (Optional, object)*: A document.
1112-
** *`filter` (Optional, { max_doc_freq, max_num_terms, max_term_freq, max_word_length, min_doc_freq, min_term_freq, min_word_length })*
1113-
** *`per_field_analyzer` (Optional, Record<string, string>)*
1114-
** *`fields` (Optional, string | string[])*: A list of fields to return.
1115-
** *`field_statistics` (Optional, boolean)*: Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.
1116-
** *`offsets` (Optional, boolean)*: Specifies if term offsets should be returned.
1117-
** *`payloads` (Optional, boolean)*: Specifies if term payloads should be returned.
1118-
** *`positions` (Optional, boolean)*: Specifies if term positions should be returned.
1119-
** *`preference` (Optional, string)*: Specify the node or shard the operation should be performed on (default: random).
1120-
** *`realtime` (Optional, boolean)*: Specifies if request is real-time as opposed to near-real-time (default: true).
1121-
** *`routing` (Optional, string)*: Specific routing value.
1122-
** *`term_statistics` (Optional, boolean)*: Specifies if total term frequency and document frequency should be returned.
1123-
** *`version` (Optional, number)*: Explicit version number for concurrency control
1124-
** *`version_type` (Optional, Enum("internal" | "external" | "external_gte" | "force"))*: Specific version type
1116+
** *`index` (string)*: Name of the index that contains the document.
1117+
** *`id` (Optional, string)*: Unique identifier of the document.
1118+
** *`doc` (Optional, object)*: An artificial document (a document not present in the index) for which you want to retrieve term vectors.
1119+
** *`filter` (Optional, { max_doc_freq, max_num_terms, max_term_freq, max_word_length, min_doc_freq, min_term_freq, min_word_length })*: Filter terms based on their tf-idf scores.
1120+
** *`per_field_analyzer` (Optional, Record<string, string>)*: Overrides the default per-field analyzer.
1121+
** *`fields` (Optional, string | string[])*: List or wildcard expressions of fields to include in the statistics.
1122+
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
1123+
** *`field_statistics` (Optional, boolean)*: If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies.
1124+
** *`offsets` (Optional, boolean)*: If `true`, the response includes term offsets.
1125+
** *`payloads` (Optional, boolean)*: If `true`, the response includes term payloads.
1126+
** *`positions` (Optional, boolean)*: If `true`, the response includes term positions.
1127+
** *`preference` (Optional, string)*: Specifies the node or shard the operation should be performed on.
1128+
Random by default.
1129+
** *`realtime` (Optional, boolean)*: If true, the request is real-time as opposed to near-real-time.
1130+
** *`routing` (Optional, string)*: Custom value used to route operations to a specific shard.
1131+
** *`term_statistics` (Optional, boolean)*: If `true`, the response includes term frequency and document frequency.
1132+
** *`version` (Optional, number)*: If `true`, returns the document version as part of a hit.
1133+
** *`version_type` (Optional, Enum("internal" | "external" | "external_gte" | "force"))*: Specific version type.
11251134

11261135
[discrete]
11271136
=== update

0 commit comments

Comments
 (0)