common-parms.asciidoc 16 KB

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