common-parms.asciidoc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  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-unloaded-segments[]
  238. `include_unloaded_segments`::
  239. (Optional, boolean) If `true`, the response includes information from segments
  240. that are **not** loaded into memory. Defaults to `false`.
  241. end::include-unloaded-segments[]
  242. tag::index-query-parm[]
  243. `index`::
  244. (Optional, string)
  245. Comma-separated list or wildcard expression of index names
  246. used to limit the request.
  247. end::index-query-parm[]
  248. tag::index[]
  249. `<index>`::
  250. (Optional, string) Comma-separated list or wildcard expression of index names
  251. used to limit the request.
  252. end::index[]
  253. tag::bulk-index[]
  254. `_index`::
  255. (Optional, string)
  256. The name of the target index.
  257. Required if not specified as a path parameter.
  258. end::bulk-index[]
  259. tag::index-metric[]
  260. `<index-metric>`::
  261. +
  262. --
  263. (Optional, string)
  264. Comma-separated list of metrics used to limit the request.
  265. Supported metrics are:
  266. `_all`::
  267. Return all statistics.
  268. `completion`::
  269. <<completion-suggester,Completion suggester>> statistics.
  270. `docs`::
  271. Number of documents and deleted docs, which have not yet merged out.
  272. <<indices-refresh,Index refreshes>> can affect this statistic.
  273. `fielddata`::
  274. <<fielddata,Fielddata>> statistics.
  275. `flush`::
  276. <<indices-flush,Flush>> statistics.
  277. `get`::
  278. Get statistics,
  279. including missing stats.
  280. `indexing`::
  281. <<docs-index_,Indexing>> statistics.
  282. `merge`::
  283. <<index-modules-merge,Merge>> statistics.
  284. `query_cache`::
  285. <<query-cache,Query cache>> statistics.
  286. `refresh`::
  287. <<indices-refresh,Refresh>> statistics.
  288. `request_cache`::
  289. <<shard-request-cache,Shard request cache>> statistics.
  290. `search`::
  291. Search statistics including suggest statistics.
  292. You can include statistics for custom groups
  293. by adding an extra `groups` parameter
  294. (search operations can be associated with one or more groups).
  295. The `groups` parameter accepts a comma separated list of group names.
  296. Use `_all` to return statistics for all groups.
  297. `segments`::
  298. Memory use of all open segments.
  299. +
  300. If the `include_segment_file_sizes` parameter is `true`,
  301. this metric includes the aggregated disk usage
  302. of each Lucene index file.
  303. `store`::
  304. Size of the index in <<byte-units, byte units>>.
  305. `suggest`::
  306. <<search-suggesters,Suggester>> statistics.
  307. `translog`::
  308. <<index-modules-translog,Translog>> statistics.
  309. `warmer`::
  310. <<indices-warmers,Warmer>> statistics.
  311. --
  312. end::index-metric[]
  313. tag::index-template[]
  314. `<index-template>`::
  315. (Required, string)
  316. Comma-separated list or wildcard expression of index template names
  317. used to limit the request.
  318. end::index-template[]
  319. tag::lenient[]
  320. `lenient`::
  321. (Optional, boolean) If `true`, format-based query failures (such as
  322. providing text to a numeric field) will be ignored. Defaults to `false`.
  323. end::lenient[]
  324. tag::level[]
  325. `level`::
  326. +
  327. --
  328. (Optional, string)
  329. Indicates whether statistics are aggregated
  330. at the cluster, index, or shard level.
  331. Valid values are:
  332. * `cluster`
  333. * `indices`
  334. * `shards`
  335. --
  336. end::level[]
  337. tag::local[]
  338. `local`::
  339. (Optional, boolean) If `true`, the request retrieves information from the local
  340. node only. Defaults to `false`, which means information is retrieved from
  341. the master node.
  342. end::local[]
  343. tag::mappings[]
  344. `mappings`::
  345. +
  346. --
  347. (Optional, <<mapping,mapping object>>) Mapping for fields in the index. If
  348. specified, this mapping can include:
  349. * Field names
  350. * <<mapping-types,Field datatypes>>
  351. * <<mapping-params,Mapping parameters>>
  352. See <<mapping>>.
  353. --
  354. end::mappings[]
  355. tag::max_docs[]
  356. `max_docs`::
  357. (Optional, integer) Maximum number of documents to process. Defaults to all
  358. documents.
  359. end::max_docs[]
  360. tag::memory[]
  361. Bytes of segment data stored in memory for efficient search,
  362. such as `1264`.
  363. +
  364. A value of `-1` indicates {es} was unable to compute this number.
  365. end::memory[]
  366. tag::node-id[]
  367. `<node_id>`::
  368. (Optional, string) Comma-separated list of node IDs or names used to limit
  369. returned information.
  370. end::node-id[]
  371. tag::node-id-query-parm[]
  372. `node_id`::
  373. (Optional, string)
  374. Comma-separated list of node IDs or names
  375. used to limit returned information.
  376. end::node-id-query-parm[]
  377. tag::offsets[]
  378. `<offsets>`::
  379. (Optional, boolean) If `true`, the response includes term offsets.
  380. Defaults to `true`.
  381. end::offsets[]
  382. tag::parent-task-id[]
  383. `parent_task_id`::
  384. +
  385. --
  386. (Optional, string)
  387. Parent task ID
  388. used to limit returned information.
  389. To return all tasks,
  390. omit this parameter
  391. or use a value of `-1`.
  392. --
  393. end::parent-task-id[]
  394. tag::pipeline[]
  395. `pipeline`::
  396. (Optional, string) ID of the pipeline to use to preprocess incoming documents.
  397. end::pipeline[]
  398. tag::path-pipeline[]
  399. `<pipeline>`::
  400. (Optional, string) Comma-separated list or wildcard expression of pipeline IDs
  401. used to limit the request.
  402. end::path-pipeline[]
  403. tag::payloads[]
  404. `payloads`::
  405. (Optional, boolean) If `true`, the response includes term payloads.
  406. Defaults to `true`.
  407. end::payloads[]
  408. tag::positions[]
  409. `positions`::
  410. (Optional, boolean) If `true`, the response includes term positions.
  411. Defaults to `true`.
  412. end::positions[]
  413. tag::preference[]
  414. `preference`::
  415. (Optional, string) Specifies the node or shard the operation should be
  416. performed on. Random by default.
  417. end::preference[]
  418. tag::search-q[]
  419. `q`::
  420. (Optional, string) Query in the Lucene query string syntax.
  421. end::search-q[]
  422. tag::query[]
  423. `query`::
  424. (Optional, <<query-dsl,query object>>) Defines the search definition using the
  425. <<query-dsl,Query DSL>>.
  426. end::query[]
  427. tag::realtime[]
  428. `realtime`::
  429. (Optional, boolean) If `true`, the request is real-time as opposed to near-real-time.
  430. Defaults to `true`. See <<realtime>>.
  431. end::realtime[]
  432. tag::refresh[]
  433. `refresh`::
  434. (Optional, enum) If `true`, {es} refreshes the affected shards to make this
  435. operation visible to search, if `wait_for` then wait for a refresh to make
  436. this operation visible to search, if `false` do nothing with refreshes.
  437. Valid values: `true`, `false`, `wait_for`. Default: `false`.
  438. end::refresh[]
  439. tag::request_cache[]
  440. `request_cache`::
  441. (Optional, boolean) If `true`, the request cache is used for this request.
  442. Defaults to the index-level setting.
  443. end::request_cache[]
  444. tag::requests_per_second[]
  445. `requests_per_second`::
  446. (Optional, integer) The throttle for this request in sub-requests per second.
  447. -1 means no throttle. Defaults to 0.
  448. end::requests_per_second[]
  449. tag::routing[]
  450. `routing`::
  451. (Optional, string) Target the specified primary shard.
  452. end::routing[]
  453. tag::index-routing[]
  454. `routing`::
  455. (Optional, string)
  456. Custom <<mapping-routing-field, routing value>>
  457. used to route operations to a specific shard.
  458. end::index-routing[]
  459. tag::cat-s[]
  460. `s`::
  461. (Optional, string) Comma-separated list of column names or column aliases used
  462. to sort the response.
  463. end::cat-s[]
  464. tag::scroll[]
  465. `scroll`::
  466. (Optional, <<time-units, time units>>) Specifies how long a consistent view of
  467. the index should be maintained for scrolled search.
  468. end::scroll[]
  469. tag::scroll_size[]
  470. `scroll_size`::
  471. (Optional, integer) Size of the scroll request that powers the operation.
  472. Defaults to 100.
  473. end::scroll_size[]
  474. tag::search_timeout[]
  475. `search_timeout`::
  476. (Optional, <<time-units, time units>>)
  477. Explicit timeout for each search request.
  478. Defaults to no timeout.
  479. end::search_timeout[]
  480. tag::search_type[]
  481. `search_type`::
  482. (Optional, string) The type of the search operation. Available options:
  483. * `query_then_fetch`
  484. * `dfs_query_then_fetch`
  485. end::search_type[]
  486. tag::segment[]
  487. Name of the segment, such as `_0`. The segment name is derived from
  488. the segment generation and used internally to create file names in the directory
  489. of the shard.
  490. end::segment[]
  491. tag::segment-search[]
  492. If `true`,
  493. the segment is searchable.
  494. +
  495. If `false`,
  496. the segment has most likely been written to disk
  497. but needs a <<indices-refresh,refresh>> to be searchable.
  498. end::segment-search[]
  499. tag::segment-size[]
  500. Disk space used by the segment, such as `50kb`.
  501. end::segment-size[]
  502. tag::settings[]
  503. `settings`::
  504. (Optional, <<index-modules-settings,index setting object>>) Configuration
  505. options for the index. See <<index-modules-settings>>.
  506. end::settings[]
  507. tag::target-index-settings[]
  508. `settings`::
  509. (Optional, <<index-modules-settings,index setting object>>)
  510. Configuration options for the target index.
  511. See <<index-modules-settings>>.
  512. end::target-index-settings[]
  513. tag::slices[]
  514. `slices`::
  515. (Optional, integer) The number of slices this task should be divided into.
  516. Defaults to 1 meaning the task isn't sliced into subtasks.
  517. end::slices[]
  518. tag::sort[]
  519. `sort`::
  520. (Optional, string) A comma-separated list of <field>:<direction> pairs.
  521. end::sort[]
  522. tag::source[]
  523. `_source`::
  524. (Optional, string) True or false to return the `_source` field or not, or a
  525. list of fields to return.
  526. end::source[]
  527. tag::source_excludes[]
  528. `_source_excludes`::
  529. (Optional, string) A list of fields to exclude from the returned `_source`
  530. field.
  531. end::source_excludes[]
  532. tag::source_includes[]
  533. `_source_includes`::
  534. (Optional, string) A list of fields to extract and return from the `_source`
  535. field.
  536. end::source_includes[]
  537. tag::stats[]
  538. `stats`::
  539. (Optional, string) Specific `tag` of the request for logging and statistical
  540. purposes.
  541. end::stats[]
  542. tag::stored_fields[]
  543. `stored_fields`::
  544. (Optional, boolean) If `true`, retrieves the document fields stored in the
  545. index rather than the document `_source`. Defaults to `false`.
  546. end::stored_fields[]
  547. tag::target-index[]
  548. `<target-index>`::
  549. +
  550. --
  551. (Required, string)
  552. Name of the target index to create.
  553. include::{docdir}/indices/create-index.asciidoc[tag=index-name-reqs]
  554. --
  555. end::target-index[]
  556. tag::task-id[]
  557. `<task_id>`::
  558. (Optional, string) ID of the task to return
  559. (`node_id:task_number`).
  560. end::task-id[]
  561. tag::term_statistics[]
  562. `term_statistics`::
  563. (Optional, boolean) If `true`, the response includes term frequency and document frequency.
  564. Defaults to `false`.
  565. end::term_statistics[]
  566. tag::terminate_after[]
  567. `terminate_after`::
  568. (Optional, integer) The maximum number of documents to collect for each shard,
  569. upon reaching which the query execution will terminate early.
  570. end::terminate_after[]
  571. tag::time[]
  572. `time`::
  573. (Optional, <<time-units,time units>>)
  574. Unit used to display time values.
  575. end::time[]
  576. tag::timeoutparms[]
  577. tag::timeout[]
  578. `timeout`::
  579. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  580. a response. If no response is received before the timeout expires, the request
  581. fails and returns an error. Defaults to `30s`.
  582. end::timeout[]
  583. tag::master-timeout[]
  584. `master_timeout`::
  585. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  586. a connection to the master node. If no response is received before the timeout
  587. expires, the request fails and returns an error. Defaults to `30s`.
  588. end::master-timeout[]
  589. end::timeoutparms[]
  590. tag::cat-v[]
  591. `v`::
  592. (Optional, boolean) If `true`, the response includes column headings.
  593. Defaults to `false`.
  594. end::cat-v[]
  595. tag::version[]
  596. `version`::
  597. (Optional, boolean) If `true`, returns the document version as part of a hit.
  598. end::version[]
  599. tag::doc-version[]
  600. `version`::
  601. (Optional, integer) Explicit version number for concurrency control.
  602. The specified version must match the current version of the document for the
  603. request to succeed.
  604. end::doc-version[]
  605. tag::segment-version[]
  606. Version of Lucene used to write the segment.
  607. end::segment-version[]
  608. tag::version_type[]
  609. `version_type`::
  610. (Optional, enum) Specific version type: `internal`, `external`,
  611. `external_gte`, `force`.
  612. end::version_type[]
  613. tag::wait_for_active_shards[]
  614. `wait_for_active_shards`::
  615. +
  616. --
  617. (Optional, string) The number of shard copies that must be active before
  618. proceeding with the operation. Set to `all` or any positive integer up
  619. to the total number of shards in the index (`number_of_replicas+1`).
  620. Default: 1, the primary shard.
  621. See <<index-wait-for-active-shards>>.
  622. --
  623. end::wait_for_active_shards[]
  624. tag::wait_for_completion[]
  625. `wait_for_completion`::
  626. (Optional, boolean) If `true`, the request blocks until the operation is complete.
  627. Defaults to `true`.
  628. end::wait_for_completion[]