common-parms.asciidoc 33 KB

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