common-parms.asciidoc 33 KB

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