common-parms.asciidoc 33 KB

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