common-parms.asciidoc 33 KB

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