common-parms.asciidoc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  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::analyzer[]
  44. `analyzer`::
  45. (Optional, string) Analyzer to use for the query string.
  46. end::analyzer[]
  47. tag::analyze_wildcard[]
  48. `analyze_wildcard`::
  49. (Optional, boolean) If `true`, wildcard and prefix queries are
  50. analyzed. Defaults to `false`.
  51. end::analyze_wildcard[]
  52. tag::bytes[]
  53. `bytes`::
  54. (Optional, <<byte-units,byte size units>>) Unit used to display byte values.
  55. end::bytes[]
  56. tag::committed[]
  57. If `true`,
  58. the segments is synced to disk. Segments that are synced can survive a hard reboot.
  59. +
  60. If `false`,
  61. the data from uncommitted segments is also stored in
  62. the transaction log so that Elasticsearch is able to replay
  63. changes on the next start.
  64. end::committed[]
  65. tag::completion-fields[]
  66. `completion_fields`::
  67. (Optional, string)
  68. Comma-separated list or wildcard expressions of fields
  69. to include in `fielddata` and `suggest` statistics.
  70. end::completion-fields[]
  71. tag::default_operator[]
  72. `default_operator`::
  73. (Optional, string) The default operator for query string query: AND or OR.
  74. Defaults to `OR`.
  75. end::default_operator[]
  76. tag::detailed[]
  77. `detailed`::
  78. (Optional, boolean)
  79. If `true`,
  80. the response includes detailed information about shard recoveries.
  81. Defaults to `false`.
  82. end::detailed[]
  83. tag::df[]
  84. `df`::
  85. (Optional, string) Field to use as default where no field prefix is
  86. given in the query string.
  87. end::df[]
  88. tag::docs-count[]
  89. Number of non-deleted documents in the segment, such as `25`. This
  90. number is based on Lucene documents and may include documents from
  91. <<nested,nested>> fields.
  92. end::docs-count[]
  93. tag::docs-deleted[]
  94. Number of deleted documents in the segment, such as `0`. This number
  95. is based on Lucene documents. {es} reclaims the disk space of deleted Lucene
  96. documents when a segment is merged.
  97. end::docs-deleted[]
  98. tag::enrich-policy[]
  99. Enrich policy name
  100. used to limit the request.
  101. end::enrich-policy[]
  102. tag::expand-wildcards[]
  103. `expand_wildcards`::
  104. +
  105. --
  106. (Optional, string) Controls what kind of indices that wildcard
  107. expressions can expand to. Valid values are:
  108. `all`::
  109. Expand to open and closed indices.
  110. `open`::
  111. Expand only to open indices.
  112. `closed`::
  113. Expand only to closed indices.
  114. `none`::
  115. Wildcard expressions are not accepted.
  116. --
  117. end::expand-wildcards[]
  118. tag::field_statistics[]
  119. `field_statistics`::
  120. (Optional, boolean) If `true`, the response includes the document count, sum of document frequencies,
  121. and sum of total term frequencies.
  122. Defaults to `true`.
  123. end::field_statistics[]
  124. tag::fielddata-fields[]
  125. `fielddata_fields`::
  126. (Optional, string)
  127. Comma-separated list or wildcard expressions of fields
  128. to include in `fielddata` statistics.
  129. end::fielddata-fields[]
  130. tag::fields[]
  131. `fields`::
  132. +
  133. --
  134. (Optional, string)
  135. Comma-separated list or wildcard expressions of fields
  136. to include in the statistics.
  137. Used as the default list
  138. unless a specific field list is provided
  139. in the `completion_fields` or `fielddata_fields` parameters.
  140. --
  141. end::fields[]
  142. tag::index-alias-filter[]
  143. <<query-dsl-bool-query, Filter query>>
  144. used to limit the index alias.
  145. +
  146. If specified,
  147. the index alias only applies to documents returned by the filter.
  148. end::index-alias-filter[]
  149. tag::flat-settings[]
  150. `flat_settings`::
  151. (Optional, boolean) If `true`, returns settings in flat format. Defaults to
  152. `false`.
  153. end::flat-settings[]
  154. tag::http-format[]
  155. `format`::
  156. (Optional, string) Short version of the
  157. https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[HTTP accept header].
  158. Valid values include JSON, YAML, etc.
  159. end::http-format[]
  160. tag::from[]
  161. `from`::
  162. (Optional, integer) Starting document offset. Defaults to `0`.
  163. end::from[]
  164. tag::generation[]
  165. Generation number, such as `0`. {es} increments this generation number
  166. for each segment written. {es} then uses this number to derive the segment name.
  167. end::generation[]
  168. tag::group-by[]
  169. `group_by`::
  170. +
  171. --
  172. (Optional, string)
  173. Key used to group tasks in the response.
  174. Possible values are:
  175. `nodes`::
  176. (Default)
  177. Node ID
  178. `parents`::
  179. Parent task ID
  180. `none`::
  181. Do not group tasks.
  182. --
  183. end::group-by[]
  184. tag::groups[]
  185. `groups`::
  186. (Optional, string)
  187. Comma-separated list of search groups
  188. to include in the `search` statistics.
  189. end::groups[]
  190. tag::cat-h[]
  191. `h`::
  192. (Optional, string) Comma-separated list of column names to display.
  193. end::cat-h[]
  194. tag::help[]
  195. `help`::
  196. (Optional, boolean) If `true`, the response includes help information. Defaults
  197. to `false`.
  198. end::help[]
  199. tag::bulk-id[]
  200. `_id`::
  201. (Optional, string)
  202. The document ID.
  203. If no ID is specified, a document ID is automatically generated.
  204. end::bulk-id[]
  205. tag::if_primary_term[]
  206. `if_primary_term`::
  207. (Optional, integer) Only perform the operation if the document has
  208. this primary term. See <<optimistic-concurrency-control-index>>.
  209. end::if_primary_term[]
  210. tag::if_seq_no[]
  211. `if_seq_no`::
  212. (Optional, integer) Only perform the operation if the document has this
  213. sequence number. See <<optimistic-concurrency-control-index>>.
  214. end::if_seq_no[]
  215. tag::ignore_throttled[]
  216. `ignore_throttled`::
  217. (Optional, boolean) If `true`, concrete, expanded or aliased indices are
  218. ignored when throttled.
  219. end::ignore_throttled[]
  220. tag::index-ignore-unavailable[]
  221. `ignore_unavailable`::
  222. (Optional, boolean) If `true`, missing or closed indices are not included in the
  223. response. Defaults to `false`.
  224. end::index-ignore-unavailable[]
  225. tag::include-defaults[]
  226. `include_defaults`::
  227. (Optional, string) If `true`, return all default settings in the response.
  228. Defaults to `false`.
  229. end::include-defaults[]
  230. tag::include-segment-file-sizes[]
  231. `include_segment_file_sizes`::
  232. (Optional, boolean)
  233. If `true`, the call reports the aggregated disk usage of
  234. each one of the Lucene index files (only applies if segment stats are
  235. requested). Defaults to `false`.
  236. end::include-segment-file-sizes[]
  237. tag::include-type-name[]
  238. `include_type_name`::
  239. deprecated:[7.0.0, Mapping types have been deprecated. See <<removal-of-types>>.]
  240. (Optional, boolean) If `true`, a mapping type is expected in the body of
  241. mappings. Defaults to `false`.
  242. end::include-type-name[]
  243. tag::include-unloaded-segments[]
  244. `include_unloaded_segments`::
  245. (Optional, boolean) If `true`, the response includes information from segments
  246. that are **not** loaded into memory. Defaults to `false`.
  247. end::include-unloaded-segments[]
  248. tag::index-query-parm[]
  249. `index`::
  250. (Optional, string)
  251. Comma-separated list or wildcard expression of index names
  252. used to limit the request.
  253. end::index-query-parm[]
  254. tag::index[]
  255. `<index>`::
  256. (Optional, string) Comma-separated list or wildcard expression of index names
  257. used to limit the request.
  258. end::index[]
  259. tag::bulk-index[]
  260. `_index`::
  261. (Optional, string)
  262. The name of the target index.
  263. Required if not specified as a path parameter.
  264. end::bulk-index[]
  265. tag::index-metric[]
  266. `<index-metric>`::
  267. +
  268. --
  269. (Optional, string)
  270. Comma-separated list of metrics used to limit the request.
  271. Supported metrics are:
  272. `_all`::
  273. Return all statistics.
  274. `completion`::
  275. <<completion-suggester,Completion suggester>> statistics.
  276. `docs`::
  277. Number of documents and deleted docs, which have not yet merged out.
  278. <<indices-refresh,Index refreshes>> can affect this statistic.
  279. `fielddata`::
  280. <<fielddata,Fielddata>> statistics.
  281. `flush`::
  282. <<indices-flush,Flush>> statistics.
  283. `get`::
  284. Get statistics,
  285. including missing stats.
  286. `indexing`::
  287. <<docs-index_,Indexing>> statistics.
  288. `merge`::
  289. <<index-modules-merge,Merge>> statistics.
  290. `query_cache`::
  291. <<query-cache,Query cache>> statistics.
  292. `refresh`::
  293. <<indices-refresh,Refresh>> statistics.
  294. `request_cache`::
  295. <<shard-request-cache,Shard request cache>> statistics.
  296. `search`::
  297. Search statistics including suggest statistics.
  298. You can include statistics for custom groups
  299. by adding an extra `groups` parameter
  300. (search operations can be associated with one or more groups).
  301. The `groups` parameter accepts a comma separated list of group names.
  302. Use `_all` to return statistics for all groups.
  303. `segments`::
  304. Memory use of all open segments.
  305. +
  306. If the `include_segment_file_sizes` parameter is `true`,
  307. this metric includes the aggregated disk usage
  308. of each Lucene index file.
  309. `store`::
  310. Size of the index in <<byte-units, byte units>>.
  311. `suggest`::
  312. <<search-suggesters,Suggester>> statistics.
  313. `translog`::
  314. <<index-modules-translog,Translog>> statistics.
  315. `warmer`::
  316. <<indices-warmers,Warmer>> statistics.
  317. --
  318. end::index-metric[]
  319. tag::index-template[]
  320. `<index-template>`::
  321. (Required, string)
  322. Comma-separated list or wildcard expression of index template names
  323. used to limit the request.
  324. end::index-template[]
  325. tag::lenient[]
  326. `lenient`::
  327. (Optional, boolean) If `true`, format-based query failures (such as
  328. providing text to a numeric field) will be ignored. Defaults to `false`.
  329. end::lenient[]
  330. tag::level[]
  331. `level`::
  332. +
  333. --
  334. (Optional, string)
  335. Indicates whether statistics are aggregated
  336. at the cluster, index, or shard level.
  337. Valid values are:
  338. * `cluster`
  339. * `indices`
  340. * `shards`
  341. --
  342. end::level[]
  343. tag::local[]
  344. `local`::
  345. (Optional, boolean) If `true`, the request retrieves information from the local
  346. node only. Defaults to `false`, which means information is retrieved from
  347. the master node.
  348. end::local[]
  349. tag::mappings[]
  350. `mappings`::
  351. +
  352. --
  353. (Optional, <<mapping,mapping object>>) Mapping for fields in the index. If
  354. specified, this mapping can include:
  355. * Field names
  356. * <<mapping-types,Field datatypes>>
  357. * <<mapping-params,Mapping parameters>>
  358. See <<mapping>>.
  359. --
  360. end::mappings[]
  361. tag::max_docs[]
  362. `max_docs`::
  363. (Optional, integer) Maximum number of documents to process. Defaults to all
  364. documents.
  365. end::max_docs[]
  366. tag::memory[]
  367. Bytes of segment data stored in memory for efficient search,
  368. such as `1264`.
  369. +
  370. A value of `-1` indicates {es} was unable to compute this number.
  371. end::memory[]
  372. tag::node-id[]
  373. `<node_id>`::
  374. (Optional, string) Comma-separated list of node IDs or names used to limit
  375. returned information.
  376. end::node-id[]
  377. tag::node-id-query-parm[]
  378. `node_id`::
  379. (Optional, string)
  380. Comma-separated list of node IDs or names
  381. used to limit returned information.
  382. end::node-id-query-parm[]
  383. tag::offsets[]
  384. `<offsets>`::
  385. (Optional, boolean) If `true`, the response includes term offsets.
  386. Defaults to `true`.
  387. end::offsets[]
  388. tag::parent-task-id[]
  389. `parent_task_id`::
  390. +
  391. --
  392. (Optional, string)
  393. Parent task ID
  394. used to limit returned information.
  395. To return all tasks,
  396. omit this parameter
  397. or use a value of `-1`.
  398. --
  399. end::parent-task-id[]
  400. tag::pipeline[]
  401. `pipeline`::
  402. (Optional, string) ID of the pipeline to use to preprocess incoming documents.
  403. end::pipeline[]
  404. tag::path-pipeline[]
  405. `<pipeline>`::
  406. (Optional, string) Comma-separated list or wildcard expression of pipeline IDs
  407. used to limit the request.
  408. end::path-pipeline[]
  409. tag::payloads[]
  410. `payloads`::
  411. (Optional, boolean) If `true`, the response includes term payloads.
  412. Defaults to `true`.
  413. end::payloads[]
  414. tag::positions[]
  415. `positions`::
  416. (Optional, boolean) If `true`, the response includes term positions.
  417. Defaults to `true`.
  418. end::positions[]
  419. tag::preference[]
  420. `preference`::
  421. (Optional, string) Specifies the node or shard the operation should be
  422. performed on. Random by default.
  423. end::preference[]
  424. tag::search-q[]
  425. `q`::
  426. (Optional, string) Query in the Lucene query string syntax.
  427. end::search-q[]
  428. tag::query[]
  429. `query`::
  430. (Optional, <<query-dsl,query object>>) Defines the search definition using the
  431. <<query-dsl,Query DSL>>.
  432. end::query[]
  433. tag::realtime[]
  434. `realtime`::
  435. (Optional, boolean) If `true`, the request is real-time as opposed to near-real-time.
  436. Defaults to `true`. See <<realtime>>.
  437. end::realtime[]
  438. tag::refresh[]
  439. `refresh`::
  440. (Optional, enum) If `true`, {es} refreshes the affected shards to make this
  441. operation visible to search, if `wait_for` then wait for a refresh to make
  442. this operation visible to search, if `false` do nothing with refreshes.
  443. Valid values: `true`, `false`, `wait_for`. Default: `false`.
  444. end::refresh[]
  445. tag::request_cache[]
  446. `request_cache`::
  447. (Optional, boolean) If `true`, the request cache is used for this request.
  448. Defaults to the index-level setting.
  449. end::request_cache[]
  450. tag::requests_per_second[]
  451. `requests_per_second`::
  452. (Optional, integer) The throttle for this request in sub-requests per second.
  453. -1 means no throttle. Defaults to 0.
  454. end::requests_per_second[]
  455. tag::routing[]
  456. `routing`::
  457. (Optional, string) Target the specified primary shard.
  458. end::routing[]
  459. tag::index-routing[]
  460. `routing`::
  461. (Optional, string)
  462. Custom <<mapping-routing-field, routing value>>
  463. used to route operations to a specific shard.
  464. end::index-routing[]
  465. tag::cat-s[]
  466. `s`::
  467. (Optional, string) Comma-separated list of column names or column aliases used
  468. to sort the response.
  469. end::cat-s[]
  470. tag::scroll[]
  471. `scroll`::
  472. (Optional, <<time-units, time units>>) Specifies how long a consistent view of
  473. the index should be maintained for scrolled search.
  474. end::scroll[]
  475. tag::scroll_size[]
  476. `scroll_size`::
  477. (Optional, integer) Size of the scroll request that powers the operation.
  478. Defaults to 100.
  479. end::scroll_size[]
  480. tag::search_timeout[]
  481. `search_timeout`::
  482. (Optional, <<time-units, time units>>)
  483. Explicit timeout for each search request.
  484. Defaults to no timeout.
  485. end::search_timeout[]
  486. tag::search_type[]
  487. `search_type`::
  488. (Optional, string) The type of the search operation. Available options:
  489. * `query_then_fetch`
  490. * `dfs_query_then_fetch`
  491. end::search_type[]
  492. tag::segment[]
  493. Name of the segment, such as `_0`. The segment name is derived from
  494. the segment generation and used internally to create file names in the directory
  495. of the shard.
  496. end::segment[]
  497. tag::segment-search[]
  498. If `true`,
  499. the segment is searchable.
  500. +
  501. If `false`,
  502. the segment has most likely been written to disk
  503. but needs a <<indices-refresh,refresh>> to be searchable.
  504. end::segment-search[]
  505. tag::segment-size[]
  506. Disk space used by the segment, such as `50kb`.
  507. end::segment-size[]
  508. tag::settings[]
  509. `settings`::
  510. (Optional, <<index-modules-settings,index setting object>>) Configuration
  511. options for the index. See <<index-modules-settings>>.
  512. end::settings[]
  513. tag::target-index-settings[]
  514. `settings`::
  515. (Optional, <<index-modules-settings,index setting object>>)
  516. Configuration options for the target index.
  517. See <<index-modules-settings>>.
  518. end::target-index-settings[]
  519. tag::slices[]
  520. `slices`::
  521. (Optional, integer) The number of slices this task should be divided into.
  522. Defaults to 1 meaning the task isn't sliced into subtasks.
  523. end::slices[]
  524. tag::sort[]
  525. `sort`::
  526. (Optional, string) A comma-separated list of <field>:<direction> pairs.
  527. end::sort[]
  528. tag::source[]
  529. `_source`::
  530. (Optional, string) True or false to return the `_source` field or not, or a
  531. list of fields to return.
  532. end::source[]
  533. tag::source_excludes[]
  534. `_source_excludes`::
  535. (Optional, string) A list of fields to exclude from the returned `_source`
  536. field.
  537. end::source_excludes[]
  538. tag::source_includes[]
  539. `_source_includes`::
  540. (Optional, string) A list of fields to extract and return from the `_source`
  541. field.
  542. end::source_includes[]
  543. tag::stats[]
  544. `stats`::
  545. (Optional, string) Specific `tag` of the request for logging and statistical
  546. purposes.
  547. end::stats[]
  548. tag::stored_fields[]
  549. `stored_fields`::
  550. (Optional, boolean) If `true`, retrieves the document fields stored in the
  551. index rather than the document `_source`. Defaults to `false`.
  552. end::stored_fields[]
  553. tag::target-index[]
  554. `<target-index>`::
  555. +
  556. --
  557. (Required, string)
  558. Name of the target index to create.
  559. include::{docdir}/indices/create-index.asciidoc[tag=index-name-reqs]
  560. --
  561. end::target-index[]
  562. tag::task-id[]
  563. `<task_id>`::
  564. (Optional, string) ID of the task to return
  565. (`node_id:task_number`).
  566. end::task-id[]
  567. tag::term_statistics[]
  568. `term_statistics`::
  569. (Optional, boolean) If `true`, the response includes term frequency and document frequency.
  570. Defaults to `false`.
  571. end::term_statistics[]
  572. tag::terminate_after[]
  573. `terminate_after`::
  574. (Optional, integer) The maximum number of documents to collect for each shard,
  575. upon reaching which the query execution will terminate early.
  576. end::terminate_after[]
  577. tag::time[]
  578. `time`::
  579. (Optional, <<time-units,time units>>)
  580. Unit used to display time values.
  581. end::time[]
  582. tag::timeoutparms[]
  583. tag::timeout[]
  584. `timeout`::
  585. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  586. a response. If no response is received before the timeout expires, the request
  587. fails and returns an error. Defaults to `30s`.
  588. end::timeout[]
  589. tag::master-timeout[]
  590. `master_timeout`::
  591. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  592. a connection to the master node. If no response is received before the timeout
  593. expires, the request fails and returns an error. Defaults to `30s`.
  594. end::master-timeout[]
  595. end::timeoutparms[]
  596. tag::cat-v[]
  597. `v`::
  598. (Optional, boolean) If `true`, the response includes column headings.
  599. Defaults to `false`.
  600. end::cat-v[]
  601. tag::version[]
  602. `version`::
  603. (Optional, boolean) If `true`, returns the document version as part of a hit.
  604. end::version[]
  605. tag::doc-version[]
  606. `version`::
  607. (Optional, integer) Explicit version number for concurrency control.
  608. The specified version must match the current version of the document for the
  609. request to succeed.
  610. end::doc-version[]
  611. tag::segment-version[]
  612. Version of Lucene used to write the segment.
  613. end::segment-version[]
  614. tag::version_type[]
  615. `version_type`::
  616. (Optional, enum) Specific version type: `internal`, `external`,
  617. `external_gte`, `force`.
  618. end::version_type[]
  619. tag::wait_for_active_shards[]
  620. `wait_for_active_shards`::
  621. +
  622. --
  623. (Optional, string) The number of shard copies that must be active before
  624. proceeding with the operation. Set to `all` or any positive integer up
  625. to the total number of shards in the index (`number_of_replicas+1`).
  626. Default: 1, the primary shard.
  627. See <<index-wait-for-active-shards>>.
  628. --
  629. end::wait_for_active_shards[]
  630. tag::wait_for_completion[]
  631. `wait_for_completion`::
  632. (Optional, boolean) If `true`, the request blocks until the operation is complete.
  633. Defaults to `true`.
  634. end::wait_for_completion[]