common-parms.asciidoc 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257
  1. tag::actions[]
  2. `actions`::
  3. +
  4. --
  5. (Optional, string)
  6. Comma-separated list or wildcard expression
  7. of actions used to limit the request.
  8. Omit this parameter to return all actions.
  9. --
  10. end::actions[]
  11. tag::active-only[]
  12. `active_only`::
  13. (Optional, Boolean)
  14. If `true`,
  15. the response only includes ongoing shard recoveries.
  16. Defaults to `false`.
  17. end::active-only[]
  18. tag::allow-no-indices[]
  19. `allow_no_indices`::
  20. (Optional, Boolean)
  21. If `false`, the request returns an error if any wildcard expression,
  22. <<aliases,index alias>>, or `_all` value targets only missing or closed indices.
  23. This behavior applies even if the request targets other open indices. For
  24. example, a request targeting `foo*,bar*` returns an error if an index starts
  25. with `foo` but no index starts with `bar`.
  26. end::allow-no-indices[]
  27. tag::allow-no-match-transforms1[]
  28. Specifies what to do when the request:
  29. +
  30. --
  31. * Contains wildcard expressions and there are no {transforms} that match.
  32. * Contains the `_all` string or no identifiers and there are no matches.
  33. * Contains wildcard expressions and there are only partial matches.
  34. The default value is `true`, which returns an empty `transforms` array when
  35. there are no matches and the subset of results when there are partial matches.
  36. If this parameter is `false`, the request returns a `404` status code when there
  37. are no matches or only partial matches.
  38. --
  39. end::allow-no-match-transforms1[]
  40. tag::allow-no-match-transforms2[]
  41. Specifies what to do when the request:
  42. +
  43. --
  44. * Contains wildcard expressions and there are no {transforms} that match.
  45. * Contains the `_all` string or no identifiers and there are no matches.
  46. * Contains wildcard expressions and there are only partial matches.
  47. The default value is `true`, which returns a successful acknowledgement message
  48. when there are no matches. When there are only partial matches, the API stops
  49. the appropriate {transforms}. For example, if the request contains
  50. `test-id1*,test-id2*` as the identifiers and there are no {transforms}
  51. that match `test-id2*`, the API nonetheless stops the {transforms}
  52. that match `test-id1*`.
  53. If this parameter is `false`, the request returns a `404` status code when there
  54. are no matches or only partial matches.
  55. --
  56. end::allow-no-match-transforms2[]
  57. tag::analyzer[]
  58. `analyzer`::
  59. (Optional, string) Analyzer to use for the query string.
  60. +
  61. This parameter can only be used when the `q` query string parameter is
  62. specified.
  63. end::analyzer[]
  64. tag::analyze_wildcard[]
  65. `analyze_wildcard`::
  66. (Optional, Boolean) If `true`, wildcard and prefix queries are analyzed.
  67. Defaults to `false`.
  68. +
  69. This parameter can only be used when the `q` query string parameter is
  70. specified.
  71. end::analyze_wildcard[]
  72. tag::bulk-id[]
  73. `_id`::
  74. (Optional, string)
  75. The document ID.
  76. If no ID is specified, a document ID is automatically generated.
  77. end::bulk-id[]
  78. tag::bulk-index[]
  79. `_index`::
  80. (Optional, string)
  81. Name of the index or index alias to perform the action on. This
  82. parameter is required if a `<target>` is not specified in the request path.
  83. end::bulk-index[]
  84. tag::bulk-index-ds[]
  85. `_index`::
  86. (Optional, string)
  87. Name of the data stream, index, or index alias to perform the action on. This
  88. parameter is required if a `<target>` is not specified in the request path.
  89. end::bulk-index-ds[]
  90. tag::bytes[]
  91. `bytes`::
  92. (Optional, <<byte-units,byte size units>>) Unit used to display byte values.
  93. end::bytes[]
  94. tag::cat-h[]
  95. `h`::
  96. (Optional, string) Comma-separated list of column names to display.
  97. end::cat-h[]
  98. tag::checkpointing-changes-last-detected-at[]
  99. The timestamp when changes were last detected in the source indices.
  100. end::checkpointing-changes-last-detected-at[]
  101. tag::checkpointing-last-search-time[]
  102. The timestamp of the last search in the source indices. This field is only
  103. shown if the transform is running.
  104. end::checkpointing-last-search-time[]
  105. tag::cluster-health-status[]
  106. (string)
  107. Health status of the cluster, based on the state of its primary and replica
  108. shards. Statuses are:
  109. * `green`:
  110. All shards are assigned.
  111. * `yellow`:
  112. All primary shards are assigned, but one or more replica shards are
  113. unassigned. If a node in the cluster fails, some data could be unavailable
  114. until that node is repaired.
  115. * `red`:
  116. One or more primary shards are unassigned, so some data is unavailable. This
  117. can occur briefly during cluster startup as primary shards are assigned.
  118. end::cluster-health-status[]
  119. tag::committed[]
  120. If `true`,
  121. the segments is synced to disk. Segments that are synced can survive a hard reboot.
  122. +
  123. If `false`,
  124. the data from uncommitted segments is also stored in
  125. the transaction log so that Elasticsearch is able to replay
  126. changes on the next start.
  127. end::committed[]
  128. tag::completion-fields[]
  129. `completion_fields`::
  130. (Optional, string)
  131. Comma-separated list or wildcard expressions of fields
  132. to include in `fielddata` and `suggest` statistics.
  133. end::completion-fields[]
  134. tag::component-template[]
  135. `<component-template>`::
  136. (Required, string)
  137. Comma-separated list or wildcard expression of component template names
  138. used to limit the request.
  139. end::component-template[]
  140. tag::delete-time-ms[]
  141. The amount of time spent deleting, in milliseconds.
  142. end::delete-time-ms[]
  143. tag::default_operator[]
  144. `default_operator`::
  145. (Optional, string) The default operator for query string query: AND or OR.
  146. Defaults to `OR`.
  147. +
  148. This parameter can only be used when the `q` query string parameter is
  149. specified.
  150. end::default_operator[]
  151. tag::dest[]
  152. The destination for the {transform}.
  153. end::dest[]
  154. tag::dest-index[]
  155. The _destination index_ for the {transform}.
  156. In the case of a `pivot` transform, the mappings of the destination
  157. index are deduced based on the source fields when possible. If alternate
  158. mappings are required, use the <<indices-create-index,Create index API>>
  159. prior to starting the {transform}.
  160. In the case of a `latest` transform, the mappings are never deduced. If dynamic
  161. mappings for the destination index are undesirable, use the
  162. <<indices-create-index,Create index API>> prior to starting the {transform}.
  163. end::dest-index[]
  164. tag::dest-pipeline[]
  165. The unique identifier for an <<ingest,ingest pipeline>>.
  166. end::dest-pipeline[]
  167. tag::detailed[]
  168. `detailed`::
  169. (Optional, Boolean)
  170. If `true`,
  171. the response includes detailed information about shard recoveries.
  172. Defaults to `false`.
  173. end::detailed[]
  174. tag::df[]
  175. `df`::
  176. (Optional, string) Field to use as default where no field prefix is given in the
  177. query string.
  178. +
  179. This parameter can only be used when the `q` query string parameter is
  180. specified.
  181. end::df[]
  182. tag::docs-count[]
  183. The number of documents as reported by Lucene. This excludes deleted documents
  184. and counts any <<nested,nested documents>> separately from their parents. It
  185. also excludes documents which were indexed recently and do not yet belong to a
  186. segment.
  187. end::docs-count[]
  188. tag::docs-deleted[]
  189. The number of deleted documents as reported by Lucene, which may be higher or
  190. lower than the number of delete operations you have performed. This number
  191. excludes deletes that were performed recently and do not yet belong to a
  192. segment. Deleted documents are cleaned up by the
  193. <<index-modules-merge,automatic merge process>> if it makes sense to do so.
  194. Also, {es} creates extra deleted documents to internally track the recent
  195. history of operations on a shard.
  196. end::docs-deleted[]
  197. tag::docs-deleted-transform[]
  198. The number of documents that have been deleted from the destination index due to
  199. the retention policy for this {transform}.
  200. end::docs-deleted-transform[]
  201. tag::docs-indexed[]
  202. The number of documents that have been indexed into the destination index
  203. for the {transform}.
  204. end::docs-indexed[]
  205. tag::docs-processed[]
  206. The number of documents that have been processed from the source index of
  207. the {transform}.
  208. end::docs-processed[]
  209. tag::ds-expand-wildcards[]
  210. `expand_wildcards`::
  211. +
  212. --
  213. (Optional, string)
  214. Type of data stream that wildcard patterns can match. Supports
  215. comma-separated values, such as `open,hidden`. Valid values are:
  216. `all`, `hidden`::
  217. Match any data stream, including <<hidden,hidden>> ones.
  218. `open`, `closed`::
  219. Matches any non-hidden data stream. Data streams cannot be closed.
  220. `none`::
  221. Wildcard patterns are not accepted.
  222. --
  223. end::ds-expand-wildcards[]
  224. tag::expand-wildcards[]
  225. `expand_wildcards`::
  226. +
  227. --
  228. (Optional, string)
  229. Type of index that wildcard patterns can match. If the request can target data
  230. streams, this argument determines whether wildcard expressions match hidden data
  231. streams. Supports comma-separated values, such as `open,hidden`. Valid values
  232. are:
  233. `all`::
  234. Match any data stream or index, including <<hidden,hidden>> ones.
  235. `open`::
  236. Match open, non-hidden indices. Also matches any non-hidden data stream.
  237. `closed`::
  238. Match closed, non-hidden indices. Also matches any non-hidden data stream. Data
  239. streams cannot be closed.
  240. `hidden`::
  241. Match hidden data streams and hidden indices. Must be combined with `open`,
  242. `closed`, or both.
  243. `none`::
  244. Wildcard patterns are not accepted.
  245. --
  246. end::expand-wildcards[]
  247. tag::exponential-avg-checkpoint-duration-ms[]
  248. Exponential moving average of the duration of the checkpoint, in milliseconds.
  249. end::exponential-avg-checkpoint-duration-ms[]
  250. tag::exponential-avg-documents-indexed[]
  251. Exponential moving average of the number of new documents that have been
  252. indexed.
  253. end::exponential-avg-documents-indexed[]
  254. tag::exponential-avg-documents-processed[]
  255. Exponential moving average of the number of documents that have been
  256. processed.
  257. end::exponential-avg-documents-processed[]
  258. tag::field_statistics[]
  259. `field_statistics`::
  260. (Optional, Boolean) If `true`, the response includes the document count, sum of document frequencies,
  261. and sum of total term frequencies.
  262. Defaults to `true`.
  263. end::field_statistics[]
  264. tag::fielddata-fields[]
  265. `fielddata_fields`::
  266. (Optional, string)
  267. Comma-separated list or wildcard expressions of fields
  268. to include in `fielddata` statistics.
  269. end::fielddata-fields[]
  270. tag::fields[]
  271. `fields`::
  272. +
  273. --
  274. (Optional, string)
  275. Comma-separated list or wildcard expressions of fields
  276. to include in the statistics.
  277. Used as the default list
  278. unless a specific field list is provided
  279. in the `completion_fields` or `fielddata_fields` parameters.
  280. --
  281. end::fields[]
  282. tag::flat-settings[]
  283. `flat_settings`::
  284. (Optional, Boolean) If `true`, returns settings in flat format. Defaults to
  285. `false`.
  286. end::flat-settings[]
  287. tag::http-format[]
  288. `format`::
  289. (Optional, string) Short version of the
  290. https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[HTTP accept header].
  291. Valid values include JSON, YAML, etc.
  292. end::http-format[]
  293. tag::frequency[]
  294. The interval between checks for changes in the source indices when the
  295. {transform} is running continuously. The minimum value is `1s` and the maximum
  296. is `1h`. The default value is `1m`.
  297. end::frequency[]
  298. tag::from[]
  299. `from`::
  300. (Optional, integer) Starting document offset. Needs to be non-negative and defaults to `0`.
  301. end::from[]
  302. tag::from-transforms[]
  303. Skips the specified number of {transforms}. The default value is `0`.
  304. end::from-transforms[]
  305. tag::generation[]
  306. Generation number, such as `0`. {es} increments this generation number
  307. for each segment written. {es} then uses this number to derive the segment name.
  308. end::generation[]
  309. tag::group-by[]
  310. `group_by`::
  311. +
  312. --
  313. (Optional, string)
  314. Key used to group tasks in the response.
  315. Possible values are:
  316. `nodes`::
  317. (Default)
  318. Node ID
  319. `parents`::
  320. Parent task ID
  321. `none`::
  322. Do not group tasks.
  323. --
  324. end::group-by[]
  325. tag::groups[]
  326. `groups`::
  327. (Optional, string)
  328. Comma-separated list of search groups
  329. to include in the `search` statistics.
  330. end::groups[]
  331. tag::help[]
  332. `help`::
  333. (Optional, Boolean) If `true`, the response includes help information. Defaults
  334. to `false`.
  335. end::help[]
  336. tag::if_primary_term[]
  337. `if_primary_term`::
  338. (Optional, integer) Only perform the operation if the document has
  339. this primary term. See <<optimistic-concurrency-control-index>>.
  340. end::if_primary_term[]
  341. tag::if_seq_no[]
  342. `if_seq_no`::
  343. (Optional, integer) Only perform the operation if the document has this
  344. sequence number. See <<optimistic-concurrency-control-index>>.
  345. end::if_seq_no[]
  346. tag::ignore_throttled[]
  347. `ignore_throttled`::
  348. (Optional, Boolean) If `true`, concrete, expanded or aliased indices are
  349. ignored when frozen. Defaults to `true`.
  350. end::ignore_throttled[]
  351. tag::index-ignore-unavailable[]
  352. `ignore_unavailable`::
  353. (Optional, Boolean) If `false`, the request returns an error if it targets a
  354. missing or closed index. Defaults to `false`.
  355. end::index-ignore-unavailable[]
  356. tag::include-defaults[]
  357. `include_defaults`::
  358. (Optional, Boolean) If `true`, return all default settings in the response.
  359. Defaults to `false`.
  360. end::include-defaults[]
  361. tag::include-segment-file-sizes[]
  362. `include_segment_file_sizes`::
  363. (Optional, Boolean)
  364. If `true`, the call reports the aggregated disk usage of
  365. each one of the Lucene index files (only applies if segment stats are
  366. requested). Defaults to `false`.
  367. end::include-segment-file-sizes[]
  368. tag::include-unloaded-segments[]
  369. `include_unloaded_segments`::
  370. (Optional, Boolean) If `true`, the response includes information from segments
  371. that are **not** loaded into memory. Defaults to `false`.
  372. end::include-unloaded-segments[]
  373. tag::index-query-parm[]
  374. `index`::
  375. (Optional, string)
  376. Comma-separated list or wildcard expression of index names
  377. used to limit the request.
  378. end::index-query-parm[]
  379. tag::index[]
  380. `<index>`::
  381. (Optional, string) Comma-separated list or wildcard expression of index names
  382. used to limit the request.
  383. end::index[]
  384. tag::index-failures[]
  385. The number of indexing failures.
  386. end::index-failures[]
  387. tag::index-time-ms[]
  388. The amount of time spent indexing, in milliseconds.
  389. end::index-time-ms[]
  390. tag::index-total[]
  391. The number of index operations.
  392. end::index-total[]
  393. tag::index-metric[]
  394. `<index-metric>`::
  395. +
  396. --
  397. (Optional, string)
  398. Comma-separated list of metrics used to limit the request.
  399. Supported metrics are:
  400. `_all`::
  401. Return all statistics.
  402. `completion`::
  403. <<completion-suggester,Completion suggester>> statistics.
  404. `docs`::
  405. Number of documents and deleted docs, which have not yet merged out.
  406. <<indices-refresh,Index refreshes>> can affect this statistic.
  407. `fielddata`::
  408. <<fielddata,Fielddata>> statistics.
  409. `flush`::
  410. <<indices-flush,Flush>> statistics.
  411. `get`::
  412. Get statistics,
  413. including missing stats.
  414. `indexing`::
  415. <<docs-index_,Indexing>> statistics.
  416. `merge`::
  417. <<index-modules-merge,Merge>> statistics.
  418. `query_cache`::
  419. <<query-cache,Query cache>> statistics.
  420. `refresh`::
  421. <<indices-refresh,Refresh>> statistics.
  422. `request_cache`::
  423. <<shard-request-cache,Shard request cache>> statistics.
  424. `search`::
  425. Search statistics including suggest statistics.
  426. You can include statistics for custom groups
  427. by adding an extra `groups` parameter
  428. (search operations can be associated with one or more groups).
  429. The `groups` parameter accepts a comma separated list of group names.
  430. Use `_all` to return statistics for all groups.
  431. `segments`::
  432. Memory use of all open segments.
  433. +
  434. If the `include_segment_file_sizes` parameter is `true`,
  435. this metric includes the aggregated disk usage
  436. of each Lucene index file.
  437. `store`::
  438. Size of the index in <<byte-units, byte units>>.
  439. `translog`::
  440. <<index-modules-translog,Translog>> statistics.
  441. `warmer`::
  442. <<indices-warmers,Warmer>> statistics.
  443. --
  444. end::index-metric[]
  445. tag::index-template[]
  446. `<index-template>`::
  447. (Required, string)
  448. Comma-separated list of index template names used to limit the request. Wildcard
  449. (`*`) expressions are supported.
  450. end::index-template[]
  451. tag::knn[]
  452. Defines the <<approximate-knn,kNN>> query to run.
  453. end::knn[]
  454. tag::knn-field[]
  455. The name of the vector field to search against. Must be a
  456. <<index-vectors-knn-search, `dense_vector` field with indexing enabled>>.
  457. end::knn-field[]
  458. tag::knn-filter[]
  459. Query to filter the documents that can match. The kNN search will return the top
  460. `k` documents that also match this filter. The value can be a single query or a
  461. list of queries. If `filter` is not provided, all documents are allowed to
  462. match.
  463. end::knn-filter[]
  464. tag::knn-k[]
  465. Number of nearest neighbors to return as top hits. This value must be less than
  466. `num_candidates`.
  467. end::knn-k[]
  468. tag::knn-num-candidates[]
  469. The number of nearest neighbor candidates to consider per shard. Cannot exceed
  470. 10,000. {es} collects `num_candidates` results from each shard, then merges them
  471. to find the top `k` results. Increasing `num_candidates` tends to improve the
  472. accuracy of the final `k` results.
  473. end::knn-num-candidates[]
  474. tag::knn-query-vector[]
  475. Query vector. Must have the same number of dimensions as the vector field you
  476. are searching against.
  477. end::knn-query-vector[]
  478. tag::knn-similarity[]
  479. The minimum similarity required for a document to be considered a match. The similarity
  480. value calculated relates to the raw <<dense-vector-similarity, `similarity`>> used. Not the
  481. document score. The matched documents are then scored according to <<dense-vector-similarity, `similarity`>>
  482. and the provided `boost` is applied.
  483. +
  484. --
  485. The `similarity` parameter is the direct vector similarity calculation.
  486. * `l2_norm`: also known as Euclidean, will include documents where the vector is within
  487. the `dims` dimensional hypersphere with radius `similarity` with origin at `query_vector`.
  488. * `cosine` & `dot_product`: Only return vectors where the cosine similarity or dot-product are at least the provided
  489. `similarity`.
  490. --
  491. end::knn-similarity[]
  492. tag::lenient[]
  493. `lenient`::
  494. (Optional, Boolean) If `true`, format-based query failures (such as providing
  495. text to a numeric field) in the query string will be ignored. Defaults to
  496. `false`.
  497. +
  498. This parameter can only be used when the `q` query string parameter is
  499. specified.
  500. end::lenient[]
  501. tag::level[]
  502. `level`::
  503. +
  504. --
  505. (Optional, string)
  506. Indicates whether statistics are aggregated
  507. at the cluster, index, or shard level.
  508. Valid values are:
  509. * `cluster`
  510. * `indices`
  511. * `shards`
  512. --
  513. end::level[]
  514. tag::local[]
  515. `local`::
  516. (Optional, Boolean) If `true`, the request retrieves information from the local
  517. node only. Defaults to `false`, which means information is retrieved from
  518. the master node.
  519. end::local[]
  520. tag::mappings[]
  521. `mappings`::
  522. +
  523. --
  524. (Optional, <<mapping,mapping object>>) Mapping for fields in the index. If
  525. specified, this mapping can include:
  526. * Field names
  527. * <<mapping-types,Field data types>>
  528. * <<mapping-params,Mapping parameters>>
  529. See <<mapping>>.
  530. --
  531. end::mappings[]
  532. tag::max_docs[]
  533. `max_docs`::
  534. (Optional, integer) Maximum number of documents to process. Defaults to all
  535. documents. When set to a value less then or equal to `scroll_size` then a
  536. scroll will not be used to retrieve the results for the operation.
  537. end::max_docs[]
  538. tag::memory[]
  539. Bytes of segment data stored in memory for efficient search,
  540. such as `1264`.
  541. +
  542. A value of `-1` indicates {es} was unable to compute this number.
  543. end::memory[]
  544. tag::bulk-require-alias[]
  545. `require_alias`::
  546. (Optional, Boolean)
  547. If `true`, the action must target an <<aliases,index alias>>. Defaults to
  548. `false`.
  549. end::bulk-require-alias[]
  550. tag::require-alias[]
  551. `require_alias`::
  552. (Optional, Boolean) If `true`, the destination must be an <<aliases,index alias>>.
  553. Defaults to `false`.
  554. end::require-alias[]
  555. tag::bulk-dynamic-templates[]
  556. `dynamic_templates`::
  557. (Optional, map)
  558. A map from the full name of fields to the name of <<dynamic-templates,dynamic templates>>.
  559. Defaults to an empty map. If a name matches a dynamic template, then that template will be
  560. applied regardless of other match predicates defined in the template. And if a field is
  561. already defined in the mapping, then this parameter won't be used.
  562. end::bulk-dynamic-templates[]
  563. tag::node-filter[]
  564. `<node_filter>`::
  565. (Optional, string)
  566. Comma-separated list of <<cluster-nodes,node filters>> used to limit returned
  567. information. Defaults to all nodes in the cluster.
  568. end::node-filter[]
  569. tag::node-id[]
  570. `<node_id>`::
  571. (Optional, string) Comma-separated list of node IDs or names used to limit
  572. returned information.
  573. end::node-id[]
  574. tag::node-id-query-parm[]
  575. `node_id`::
  576. (Optional, string)
  577. Comma-separated list of node IDs or names
  578. used to limit returned information.
  579. end::node-id-query-parm[]
  580. tag::offsets[]
  581. `<offsets>`::
  582. (Optional, Boolean) If `true`, the response includes term offsets.
  583. Defaults to `true`.
  584. end::offsets[]
  585. tag::parent-task-id[]
  586. `parent_task_id`::
  587. +
  588. --
  589. (Optional, string)
  590. Parent task ID
  591. used to limit returned information.
  592. To return all tasks,
  593. omit this parameter
  594. or use a value of `-1`.
  595. --
  596. end::parent-task-id[]
  597. tag::payloads[]
  598. `payloads`::
  599. (Optional, Boolean) If `true`, the response includes term payloads.
  600. Defaults to `true`.
  601. end::payloads[]
  602. tag::pipeline[]
  603. `pipeline`::
  604. (Optional, string) ID of the pipeline to use to preprocess incoming documents. If the index has a
  605. default ingest pipeline specified, then setting the value to `_none` disables the default ingest
  606. pipeline for this request. If a final pipeline is configured it will always run, regardless of the
  607. value of this parameter.
  608. end::pipeline[]
  609. tag::pages-processed[]
  610. The number of search or bulk index operations processed. Documents are
  611. processed in batches instead of individually.
  612. end::pages-processed[]
  613. tag::pivot[]
  614. The `pivot` method transforms the data by aggregating and grouping it. These
  615. objects define the `group by` fields and the aggregation to reduce the data.
  616. end::pivot[]
  617. tag::pivot-aggs[]
  618. Defines how to aggregate the grouped data. The following aggregations are
  619. currently supported:
  620. +
  621. --
  622. * <<search-aggregations-metrics-avg-aggregation,Average>>
  623. * <<search-aggregations-pipeline-bucket-script-aggregation,Bucket script>>
  624. * <<search-aggregations-pipeline-bucket-selector-aggregation,Bucket selector>>
  625. * <<search-aggregations-metrics-cardinality-aggregation,Cardinality>>
  626. * <<search-aggregations-bucket-filter-aggregation,Filter>>
  627. * <<search-aggregations-metrics-geobounds-aggregation,Geo bounds>>
  628. * <<search-aggregations-metrics-geocentroid-aggregation,Geo centroid>>
  629. * <<search-aggregations-metrics-geo-line,Geo line>>
  630. * <<search-aggregations-metrics-cartesian-bounds-aggregation,Cartesian bounds>>
  631. * <<search-aggregations-metrics-cartesian-centroid-aggregation,Cartesian centroid>>
  632. * <<search-aggregations-metrics-max-aggregation,Max>>
  633. * <<search-aggregations-metrics-median-absolute-deviation-aggregation,Median absolute deviation>>
  634. * <<search-aggregations-metrics-min-aggregation,Min>>
  635. * <<search-aggregations-bucket-missing-aggregation,Missing>>
  636. * <<search-aggregations-metrics-percentile-aggregation,Percentiles>>
  637. * <<search-aggregations-bucket-range-aggregation,Range>>
  638. * <<search-aggregations-bucket-rare-terms-aggregation, Rare Terms>>
  639. * <<search-aggregations-metrics-scripted-metric-aggregation,Scripted metric>>
  640. * <<search-aggregations-metrics-stats-aggregation,Stats>>
  641. * <<search-aggregations-metrics-sum-aggregation,Sum>>
  642. * <<search-aggregations-bucket-terms-aggregation, Terms>>
  643. * <<search-aggregations-metrics-top-metrics,Top Metrics>>
  644. * <<search-aggregations-metrics-valuecount-aggregation,Value count>>
  645. * <<search-aggregations-metrics-weight-avg-aggregation,Weighted average>>
  646. --
  647. end::pivot-aggs[]
  648. tag::pivot-group-by[]
  649. Defines how to group the data. More than one grouping can be defined per pivot.
  650. The following groupings are currently supported:
  651. +
  652. --
  653. * <<_date_histogram,Date histogram>>
  654. * <<_geotile_grid,Geotile Grid>>
  655. * <<_histogram,Histogram>>
  656. * <<_terms,Terms>>
  657. The grouping properties can optionally have a `missing_bucket` property. If
  658. it's `true`, documents without a value in the respective `group_by` field are
  659. included. Defaults to `false`.
  660. --
  661. end::pivot-group-by[]
  662. tag::positions[]
  663. `positions`::
  664. (Optional, Boolean) If `true`, the response includes term positions.
  665. Defaults to `true`.
  666. end::positions[]
  667. tag::preference[]
  668. `preference`::
  669. (Optional, string) Specifies the node or shard the operation should be
  670. performed on. Random by default.
  671. end::preference[]
  672. tag::processing-time-ms[]
  673. The amount of time spent processing results, in milliseconds.
  674. end::processing-time-ms[]
  675. tag::processing-total[]
  676. The number of processing operations.
  677. end::processing-total[]
  678. tag::search-q[]
  679. `q`::
  680. (Optional, string) Query in the Lucene query string syntax.
  681. end::search-q[]
  682. tag::query[]
  683. `query`::
  684. (Optional, <<query-dsl,query object>>) Defines the search definition using the
  685. <<query-dsl,Query DSL>>.
  686. end::query[]
  687. tag::realtime[]
  688. `realtime`::
  689. (Optional, Boolean) If `true`, the request is real-time as opposed to near-real-time.
  690. Defaults to `true`. See <<realtime>>.
  691. end::realtime[]
  692. tag::refresh[]
  693. `refresh`::
  694. (Optional, enum) If `true`, {es} refreshes the affected shards to make this
  695. operation visible to search, if `wait_for` then wait for a refresh to make
  696. this operation visible to search, if `false` do nothing with refreshes.
  697. Valid values: `true`, `false`, `wait_for`. Default: `false`.
  698. end::refresh[]
  699. tag::request_cache[]
  700. `request_cache`::
  701. (Optional, Boolean) If `true`, the request cache is used for this request.
  702. Defaults to the index-level setting.
  703. end::request_cache[]
  704. tag::requests_per_second[]
  705. `requests_per_second`::
  706. (Optional, integer) The throttle for this request in sub-requests per second.
  707. Defaults to `-1` (no throttle).
  708. end::requests_per_second[]
  709. tag::routing[]
  710. `routing`::
  711. (Optional, string)
  712. Custom value used to route operations to a specific shard.
  713. end::routing[]
  714. tag::cat-s[]
  715. `s`::
  716. (Optional, string) Comma-separated list of column names or column aliases used
  717. to sort the response.
  718. end::cat-s[]
  719. tag::scroll[]
  720. `scroll`::
  721. (Optional, <<time-units, time units>>) Specifies how long a consistent view of
  722. the index should be maintained for scrolled search.
  723. end::scroll[]
  724. tag::scroll_size[]
  725. `scroll_size`::
  726. (Optional, integer) Size of the scroll request that powers the operation.
  727. Defaults to 1000.
  728. end::scroll_size[]
  729. tag::search-failures[]
  730. The number of search failures.
  731. end::search-failures[]
  732. tag::search-time-ms[]
  733. The amount of time spent searching, in milliseconds.
  734. end::search-time-ms[]
  735. tag::search-total[]
  736. The number of search operations on the source index for the {transform}.
  737. end::search-total[]
  738. tag::search_type[]
  739. `search_type`::
  740. (Optional, string) The type of the search operation. Available options:
  741. * `query_then_fetch`
  742. * `dfs_query_then_fetch`
  743. end::search_type[]
  744. tag::segment[]
  745. Name of the segment, such as `_0`. The segment name is derived from
  746. the segment generation and used internally to create file names in the directory
  747. of the shard.
  748. end::segment[]
  749. tag::segment-search[]
  750. If `true`,
  751. the segment is searchable.
  752. +
  753. If `false`,
  754. the segment has most likely been written to disk
  755. but needs a <<indices-refresh,refresh>> to be searchable.
  756. end::segment-search[]
  757. tag::segment-size[]
  758. Disk space used by the segment, such as `50kb`.
  759. end::segment-size[]
  760. tag::settings[]
  761. `settings`::
  762. (Optional, <<index-modules-settings,index setting object>>) Configuration
  763. options for the index. See <<index-modules-settings>>.
  764. end::settings[]
  765. tag::target-index-settings[]
  766. `settings`::
  767. (Optional, <<index-modules-settings,index setting object>>)
  768. Configuration options for the target index.
  769. See <<index-modules-settings>>.
  770. end::target-index-settings[]
  771. tag::size-transforms[]
  772. Specifies the maximum number of {transforms} to obtain. The default value is
  773. `100`.
  774. end::size-transforms[]
  775. tag::slices[]
  776. `slices`::
  777. (Optional, integer) The number of slices this task should be divided into.
  778. Defaults to 1 meaning the task isn't sliced into subtasks.
  779. end::slices[]
  780. tag::sort[]
  781. `sort`::
  782. (Optional, string) A comma-separated list of <field>:<direction> pairs.
  783. end::sort[]
  784. tag::source[]
  785. `_source`::
  786. (Optional, string) True or false to return the `_source` field or not, or a
  787. list of fields to return.
  788. end::source[]
  789. tag::source_excludes[]
  790. `_source_excludes`::
  791. (Optional, string)
  792. A comma-separated list of <<mapping-source-field,source fields>> to exclude from
  793. the response.
  794. +
  795. You can also use this parameter to exclude fields from the subset specified in
  796. `_source_includes` query parameter.
  797. +
  798. If the `_source` parameter is `false`, this parameter is ignored.
  799. end::source_excludes[]
  800. tag::source_includes[]
  801. `_source_includes`::
  802. (Optional, string)
  803. A comma-separated list of <<mapping-source-field,source fields>> to
  804. include in the response.
  805. +
  806. If this parameter is specified, only these source fields are returned. You can
  807. exclude fields from this subset using the `_source_excludes` query parameter.
  808. +
  809. If the `_source` parameter is `false`, this parameter is ignored.
  810. end::source_includes[]
  811. tag::source-transforms[]
  812. The source of the data for the {transform}.
  813. end::source-transforms[]
  814. tag::source-index-transforms[]
  815. The _source indices_ for the {transform}. It can be a single index, an index
  816. pattern (for example, `"my-index-*"`), an array of indices (for example,
  817. `["my-index-000001", "my-index-000002"]`), or an array of index patterns (for
  818. example, `["my-index-*", "my-other-index-*"]`. For remote indices use the syntax
  819. `"remote_name:index_name"`.
  820. +
  821. --
  822. NOTE: If any indices are in remote clusters then the master node and at least
  823. one transform node must have the `remote_cluster_client` node role.
  824. --
  825. end::source-index-transforms[]
  826. tag::source-query-transforms[]
  827. A query clause that retrieves a subset of data from the source index. See
  828. <<query-dsl>>.
  829. end::source-query-transforms[]
  830. tag::source-runtime-mappings-transforms[]
  831. Definitions of search-time runtime fields that can be used by the transform. For
  832. search runtime fields all data nodes, including remote nodes, must be 7.12 or
  833. later.
  834. end::source-runtime-mappings-transforms[]
  835. tag::state-transform[]
  836. The status of the {transform}, which can be one of the following values:
  837. +
  838. --
  839. * `aborting`: The {transform} is aborting.
  840. * `failed`: The {transform} failed. For more information about the failure,
  841. check the reason field.
  842. * `indexing`: The {transform} is actively processing data and creating new
  843. documents.
  844. * `started`: The {transform} is running but not actively indexing data.
  845. * `stopped`: The {transform} is stopped.
  846. * `stopping`: The {transform} is stopping.
  847. --
  848. end::state-transform[]
  849. tag::state-transform-reason[]
  850. If a {transform} has a `failed` state, this property provides details about the
  851. reason for the failure.
  852. end::state-transform-reason[]
  853. tag::stats[]
  854. `stats`::
  855. (Optional, string) Specific `tag` of the request for logging and statistical
  856. purposes.
  857. end::stats[]
  858. tag::stored_fields[]
  859. `stored_fields`::
  860. (Optional, Boolean) If `true`, retrieves the document fields stored in the
  861. index rather than the document `_source`. Defaults to `false`.
  862. end::stored_fields[]
  863. tag::sync[]
  864. Defines the properties {transforms} require to run continuously.
  865. end::sync[]
  866. tag::sync-time[]
  867. Specifies that the {transform} uses a time field to synchronize the source and
  868. destination indices.
  869. end::sync-time[]
  870. tag::sync-time-field[]
  871. The date field that is used to identify new documents in the source.
  872. end::sync-time-field[]
  873. tag::sync-time-delay[]
  874. The time delay between the current time and the latest input data time. The
  875. default value is `60s`.
  876. end::sync-time-delay[]
  877. tag::transform-latest[]
  878. The `latest` method transforms the data by finding the latest document for each
  879. unique key.
  880. end::transform-latest[]
  881. tag::transform-metadata[]
  882. Defines optional {transform} metadata.
  883. end::transform-metadata[]
  884. tag::transform-retention[]
  885. Defines a retention policy for the {transform}. Data that meets the defined
  886. criteria is deleted from the destination index.
  887. end::transform-retention[]
  888. tag::transform-retention-time[]
  889. Specifies that the {transform} uses a time field to set the retention policy.
  890. Data is deleted if `time.field` for the retention policy exists and contains
  891. data older than `max.age`.
  892. end::transform-retention-time[]
  893. tag::transform-retention-time-field[]
  894. The date field that is used to calculate the age of the document. Set
  895. `time.field` to an existing date field.
  896. end::transform-retention-time-field[]
  897. tag::transform-retention-time-max-age[]
  898. Specifies the maximum age of a document in the destination index. Documents that
  899. are older than the configured value are removed from the destination index.
  900. end::transform-retention-time-max-age[]
  901. tag::transform-settings[]
  902. Defines optional {transform} settings.
  903. end::transform-settings[]
  904. tag::transform-settings-dates-as-epoch-milli[]
  905. Defines if dates in the output should be written as ISO formatted string (default)
  906. or as millis since epoch. `epoch_millis` has been the default for transforms created
  907. before version `7.11`. For compatible output set this to `true`.
  908. The default value is `false`.
  909. end::transform-settings-dates-as-epoch-milli[]
  910. tag::transform-settings-docs-per-second[]
  911. Specifies a limit on the number of input documents per second. This setting
  912. throttles the {transform} by adding a wait time between search requests. The
  913. default value is `null`, which disables throttling.
  914. end::transform-settings-docs-per-second[]
  915. tag::transform-settings-align-checkpoints[]
  916. Specifies whether the transform checkpoint ranges should be optimized for performance.
  917. Such optimization can align checkpoint ranges with date histogram interval when date histogram
  918. is specified as a group source in the transform config. As an effect, less document updates in the
  919. destination index will be performed thus improving overall performance.
  920. The default value is `true`, which means the checkpoint ranges will be optimized if possible.
  921. end::transform-settings-align-checkpoints[]
  922. tag::transform-settings-deduce-mappings[]
  923. Specifies whether the transform should deduce the destination index mappings from the transform config.
  924. The default value is `true`, which means the destination index mappings will be deduced if possible.
  925. end::transform-settings-deduce-mappings[]
  926. tag::transform-settings-max-page-search-size[]
  927. Defines the initial page size to use for the composite aggregation for each
  928. checkpoint. If circuit breaker exceptions occur, the page size is dynamically
  929. adjusted to a lower value. The minimum value is `10` and the maximum is `65,536`.
  930. The default value is `500`.
  931. end::transform-settings-max-page-search-size[]
  932. tag::transform-settings-num-failure-retries[]
  933. Defines the number of retries on a recoverable failure before the {transform} task is marked as `failed`.
  934. The minimum value is `0` and the maximum is `100`.
  935. `-1` can be used to denote infinity. In this case, the {transform} never gives up on retrying a recoverable failure.
  936. The default value is the cluster-level setting `num_transform_failure_retries`.
  937. end::transform-settings-num-failure-retries[]
  938. tag::transform-settings-unattended[]
  939. If `true`, the {transform} runs in unattended mode. In unattended mode, the
  940. {transform} retries indefinitely in case of an error which means the {transform}
  941. never fails. Setting the number of retries other than infinite fails in
  942. validation. Defaults to `false`.
  943. end::transform-settings-unattended[]
  944. tag::transform-sort[]
  945. Specifies the date field that is used to identify the latest documents.
  946. end::transform-sort[]
  947. tag::transform-unique-key[]
  948. Specifies an array of one or more fields that are used to group the data.
  949. end::transform-unique-key[]
  950. tag::target-index[]
  951. `<target-index>`::
  952. +
  953. --
  954. (Required, string)
  955. Name of the target index to create.
  956. include::{es-repo-dir}/indices/create-index.asciidoc[tag=index-name-reqs]
  957. --
  958. end::target-index[]
  959. tag::task-id[]
  960. `<task_id>`::
  961. (Optional, string) ID of the task to return
  962. (`node_id:task_number`).
  963. end::task-id[]
  964. tag::term_statistics[]
  965. `term_statistics`::
  966. (Optional, Boolean) If `true`, the response includes term frequency and document frequency.
  967. Defaults to `false`.
  968. end::term_statistics[]
  969. tag::terminate_after[]
  970. `terminate_after`::
  971. (Optional, integer) Maximum number of documents to collect for each shard. If a
  972. query reaches this limit, {es} terminates the query early. {es} collects
  973. documents before sorting.
  974. +
  975. IMPORTANT: Use with caution. {es} applies this parameter to each shard handling
  976. the request. When possible, let {es} perform early termination automatically.
  977. Avoid specifying this parameter for requests that target data streams with
  978. backing indices across multiple data tiers.
  979. end::terminate_after[]
  980. tag::time[]
  981. `time`::
  982. (Optional, <<time-units,time units>>)
  983. Unit used to display time values.
  984. end::time[]
  985. tag::timeoutparms[]
  986. tag::master-timeout[]
  987. `master_timeout`::
  988. (Optional, <<time-units, time units>>)
  989. Period to wait for a connection to the master node. If no response is received
  990. before the timeout expires, the request fails and returns an error. Defaults to
  991. `30s`.
  992. end::master-timeout[]
  993. tag::timeout[]
  994. `timeout`::
  995. (Optional, <<time-units, time units>>)
  996. Period to wait for a response. If no response is received before the timeout
  997. expires, the request fails and returns an error. Defaults to `30s`.
  998. end::timeout[]
  999. end::timeoutparms[]
  1000. tag::transform-id[]
  1001. Identifier for the {transform}.
  1002. end::transform-id[]
  1003. tag::transform-id-wildcard[]
  1004. Identifier for the {transform}. It can be a {transform} identifier or a wildcard
  1005. expression. If you do not specify one of these options, the API returns
  1006. information for all {transforms}.
  1007. end::transform-id-wildcard[]
  1008. tag::trigger-count[]
  1009. The number of times the {transform} has been triggered by the scheduler. For
  1010. example, the scheduler triggers the {transform} indexer to check for updates
  1011. or ingest new data at an interval specified in the
  1012. <<put-transform-request-body,`frequency` property>>.
  1013. end::trigger-count[]
  1014. tag::cat-v[]
  1015. `v`::
  1016. (Optional, Boolean) If `true`, the response includes column headings.
  1017. Defaults to `false`.
  1018. end::cat-v[]
  1019. tag::version[]
  1020. `version`::
  1021. (Optional, Boolean) If `true`, returns the document version as part of a hit.
  1022. end::version[]
  1023. tag::doc-version[]
  1024. `version`::
  1025. (Optional, integer) Explicit version number for concurrency control.
  1026. The specified version must match the current version of the document for the
  1027. request to succeed.
  1028. end::doc-version[]
  1029. tag::segment-version[]
  1030. Version of Lucene used to write the segment.
  1031. end::segment-version[]
  1032. tag::version_type[]
  1033. `version_type`::
  1034. (Optional, enum) Specific version type: `external`,
  1035. `external_gte`.
  1036. end::version_type[]
  1037. tag::wait_for_active_shards[]
  1038. `wait_for_active_shards`::
  1039. +
  1040. --
  1041. (Optional, string) The number of shard copies that must be active before
  1042. proceeding with the operation. Set to `all` or any positive integer up
  1043. to the total number of shards in the index (`number_of_replicas+1`).
  1044. Default: 1, the primary shard.
  1045. See <<index-wait-for-active-shards>>.
  1046. --
  1047. end::wait_for_active_shards[]