common-parms.asciidoc 18 KB

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