common-parms.asciidoc 14 KB

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