common-parms.asciidoc 15 KB

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