common-parms.asciidoc 32 KB

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