common-parms.asciidoc 14 KB

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