common-parms.asciidoc 29 KB

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