common-parms.asciidoc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444
  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::default_operator[]
  40. `default_operator`::
  41. (Optional, string) The default operator for query string query: AND or OR.
  42. Defaults to `OR`.
  43. end::default_operator[]
  44. tag::df[]
  45. `df`::
  46. (Optional, string) Field to use as default where no field prefix is
  47. given in the query string.
  48. end::df[]
  49. tag::docs-count[]
  50. Number of non-deleted documents in the segment, such as `25`. This
  51. number is based on Lucene documents and may include documents from
  52. <<nested,nested>> fields.
  53. end::docs-count[]
  54. tag::docs-deleted[]
  55. Number of deleted documents in the segment, such as `0`. This number
  56. is based on Lucene documents. {es} reclaims the disk space of deleted Lucene
  57. documents when a segment is merged.
  58. end::docs-deleted[]
  59. tag::expand-wildcards[]
  60. `expand_wildcards`::
  61. +
  62. --
  63. (Optional, string) Controls what kind of indices that wildcard
  64. expressions can expand to. Valid values are:
  65. `all`::
  66. Expand to open and closed indices.
  67. `open`::
  68. Expand only to open indices.
  69. `closed`::
  70. Expand only to closed indices.
  71. `none`::
  72. Wildcard expressions are not accepted.
  73. --
  74. end::expand-wildcards[]
  75. tag::flat-settings[]
  76. `flat_settings`::
  77. (Optional, boolean) If `true`, returns settings in flat format. Defaults to
  78. `false`.
  79. end::flat-settings[]
  80. tag::generation[]
  81. Generation number, such as `0`. {es} increments this generation number
  82. for each segment written. {es} then uses this number to derive the segment name.
  83. end::generation[]
  84. tag::index-alias-filter[]
  85. <<query-dsl-bool-query, Filter query>>
  86. used to limit the index alias.
  87. +
  88. If specified,
  89. the index alias only applies to documents returned by the filter.
  90. end::index-alias-filter[]
  91. tag::http-format[]
  92. `format`::
  93. (Optional, string) Short version of the
  94. https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[HTTP accept header].
  95. Valid values include JSON, YAML, etc.
  96. end::http-format[]
  97. tag::from[]
  98. `from`::
  99. (Optional, integer) Starting document offset. Defaults to `0`.
  100. end::from[]
  101. tag::cat-h[]
  102. `h`::
  103. (Optional, string) Comma-separated list of column names to display.
  104. end::cat-h[]
  105. tag::help[]
  106. `help`::
  107. (Optional, boolean) If `true`, the response returns help information. Defaults
  108. to `false`.
  109. end::help[]
  110. tag::if_primary_term[]
  111. `if_primary_term`::
  112. (Optional, integer) Only perform the operation if the document has
  113. this primary term. See <<optimistic-concurrency-control-index>>.
  114. end::if_primary_term[]
  115. tag::if_seq_no[]
  116. `if_seq_no`::
  117. (Optional, integer) Only perform the operation if the document has this
  118. sequence number. See <<optimistic-concurrency-control-index>>.
  119. end::if_seq_no[]
  120. tag::include-defaults[]
  121. `include_defaults`::
  122. (Optional, string) If `true`, return all default settings in the response.
  123. Defaults to `false`.
  124. end::include-defaults[]
  125. tag::include-type-name[]
  126. `include_type_name`::
  127. deprecated:[7.0.0, Mapping types have been deprecated. See <<removal-of-types>>.]
  128. (Optional, boolean) If `true`, a mapping type is expected in the body of
  129. mappings. Defaults to `false`.
  130. end::include-type-name[]
  131. tag::index-ignore-unavailable[]
  132. `ignore_unavailable`::
  133. (Optional, boolean) If `true`, missing or closed indices are not included in the
  134. response. Defaults to `false`.
  135. end::index-ignore-unavailable[]
  136. tag::include-unloaded-segments[]
  137. `include_unloaded_segments`::
  138. (Optional, boolean) If `true`, the response includes information from segments
  139. that are **not** loaded into memory. Defaults to `false`.
  140. end::include-unloaded-segments[]
  141. tag::index[]
  142. `<index>`::
  143. (Optional, string) Comma-separated list or wildcard expression of index names
  144. used to limit the request.
  145. end::index[]
  146. tag::index-template[]
  147. `<index-template>`::
  148. (Required, string)
  149. Comma-separated list or wildcard expression of index template names
  150. used to limit the request.
  151. end::index-template[]
  152. tag::lenient[]
  153. `lenient`::
  154. (Optional, boolean) If `true`, format-based query failures (such as
  155. providing text to a numeric field) will be ignored. Defaults to `false`.
  156. end::lenient[]
  157. tag::local[]
  158. `local`::
  159. (Optional, boolean) If `true`, the request retrieves information from the local
  160. node only. Defaults to `false`, which means information is retrieved from
  161. the master node.
  162. end::local[]
  163. tag::mappings[]
  164. `mappings`::
  165. +
  166. --
  167. (Optional, <<mapping,mapping object>>) Mapping for fields in the index. If
  168. specified, this mapping can include:
  169. * Field names
  170. * <<mapping-types,Field datatypes>>
  171. * <<mapping-params,Mapping parameters>>
  172. See <<mapping>>.
  173. --
  174. end::mappings[]
  175. tag::max_docs[]
  176. `max_docs`::
  177. (Optional, integer) Maximum number of documents to process. Defaults to all
  178. documents.
  179. end::max_docs[]
  180. tag::memory[]
  181. Bytes of segment data stored in memory for efficient search,
  182. such as `1264`.
  183. +
  184. A value of `-1` indicates {es} was unable to compute this number.
  185. end::memory[]
  186. tag::name[]
  187. `<name>`::
  188. (Optional, string) Comma-separated list of alias names to return.
  189. end::name[]
  190. tag::node-id[]
  191. `<node_id>`::
  192. (Optional, string) Comma-separated list of node IDs or names used to limit
  193. returned information.
  194. end::node-id[]
  195. tag::pipeline[]
  196. `pipeline`::
  197. (Optional, string) ID of the pipeline to use to preprocess incoming documents.
  198. end::pipeline[]
  199. tag::preference[]
  200. `preference`::
  201. (Optional, string) Specifies the node or shard the operation should be
  202. performed on. Random by default.
  203. end::preference[]
  204. tag::search-q[]
  205. `q`::
  206. (Optional, string) Query in the Lucene query string syntax.
  207. end::search-q[]
  208. tag::refresh[]
  209. `refresh`::
  210. (Optional, enum) If `true`, {es} refreshes the affected shards to make this
  211. operation visible to search, if `wait_for` then wait for a refresh to make
  212. this operation visible to search, if `false` do nothing with refreshes.
  213. Valid values: `true`, `false`, `wait_for`. Default: `false`.
  214. end::refresh[]
  215. tag::request_cache[]
  216. `request_cache`::
  217. (Optional, boolean) Specifies if the request cache should be used for this
  218. request. Defaults to the index-level setting.
  219. end::request_cache[]
  220. tag::requests_per_second[]
  221. `requests_per_second`::
  222. (Optional, integer) The throttle for this request in sub-requests per second.
  223. -1 means no throttle. Defaults to 0.
  224. end::requests_per_second[]
  225. tag::routing[]
  226. `routing`::
  227. (Optional, string) Target the specified primary shard.
  228. end::routing[]
  229. tag::index-routing[]
  230. `routing`::
  231. (Optional, string)
  232. Custom <<mapping-routing-field, routing value>>
  233. used to route operations to a specific shard.
  234. end::index-routing[]
  235. tag::cat-s[]
  236. `s`::
  237. (Optional, string) Comma-separated list of column names or column aliases used
  238. to sort the response.
  239. end::cat-s[]
  240. tag::scroll[]
  241. `scroll`::
  242. (Optional, <<time-units, time units>>) Specifies how long a consistent view of
  243. the index should be maintained for scrolled search.
  244. end::scroll[]
  245. tag::scroll_size[]
  246. `scroll_size`::
  247. (Optional, integer) Size of the scroll request that powers the operation.
  248. Defaults to 100.
  249. end::scroll_size[]
  250. tag::segment-search[]
  251. If `true`,
  252. the segment is searchable.
  253. +
  254. If `false`,
  255. the segment has most likely been written to disk
  256. but needs a <<indices-refresh,refresh>> to be searchable.
  257. end::segment-search[]
  258. tag::search_timeout[]
  259. `search_timeout`::
  260. (Optional, <<time-units, time units>> Explicit timeout for each search
  261. request. Defaults to no timeout.
  262. end::search_timeout[]
  263. tag::search_type[]
  264. `search_type`::
  265. (Optional, string) The type of the search operation. Available options:
  266. * `query_then_fetch`
  267. * `dfs_query_then_fetch`
  268. end::search_type[]
  269. tag::segment[]
  270. Name of the segment, such as `_0`. The segment name is derived from
  271. the segment generation and used internally to create file names in the directory
  272. of the shard.
  273. end::segment[]
  274. tag::settings[]
  275. `settings`::
  276. (Optional, <<index-modules-settings,index setting object>>) Configuration
  277. options for the index. See <<index-modules-settings>>.
  278. end::settings[]
  279. tag::segment-size[]
  280. Disk space used by the segment, such as `50kb`.
  281. end::segment-size[]
  282. tag::slices[]
  283. `slices`::
  284. (Optional, integer) The number of slices this task should be divided into.
  285. Defaults to 1 meaning the task isn't sliced into subtasks.
  286. end::slices[]
  287. tag::sort[]
  288. `sort`::
  289. (Optional, string) A comma-separated list of <field>:<direction> pairs.
  290. end::sort[]
  291. tag::source[]
  292. `_source`::
  293. (Optional, string) True or false to return the `_source` field or not, or a
  294. list of fields to return.
  295. end::source[]
  296. tag::source_excludes[]
  297. `_source_excludes`::
  298. (Optional, string) A list of fields to exclude from the returned `_source`
  299. field.
  300. end::source_excludes[]
  301. tag::source_includes[]
  302. `_source_includes`::
  303. (Optional, string) A list of fields to extract and return from the `_source`
  304. field.
  305. end::source_includes[]
  306. tag::stats[]
  307. `stats`::
  308. (Optional, string) Specific `tag` of the request for logging and statistical
  309. purposes.
  310. end::stats[]
  311. tag::terminate_after[]
  312. `terminate_after`::
  313. (Optional, integer) The maximum number of documents to collect for each shard,
  314. upon reaching which the query execution will terminate early.
  315. end::terminate_after[]
  316. tag::timeoutparms[]
  317. tag::timeout[]
  318. `timeout`::
  319. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  320. a response. If no response is received before the timeout expires, the request
  321. fails and returns an error. Defaults to `30s`.
  322. end::timeout[]
  323. tag::master-timeout[]
  324. `master_timeout`::
  325. (Optional, <<time-units, time units>>) Specifies the period of time to wait for
  326. a connection to the master node. If no response is received before the timeout
  327. expires, the request fails and returns an error. Defaults to `30s`.
  328. end::master-timeout[]
  329. end::timeoutparms[]
  330. tag::cat-v[]
  331. `v`::
  332. (Optional, boolean) If `true`, the response includes column headings. Defaults
  333. to `false`.
  334. end::cat-v[]
  335. tag::version[]
  336. `version`::
  337. (Optional, boolean) If `true`, returns the document version as part of a hit.
  338. end::version[]
  339. tag::doc-version[]
  340. `version`::
  341. (Optional, integer) Explicit version number for concurrency control.
  342. The specified version must match the current version of the document for the
  343. request to succeed.
  344. end::doc-version[]
  345. tag::segment-version[]
  346. Version of Lucene used to write the segment.
  347. end::segment-version[]
  348. tag::version_type[]
  349. `version_type`::
  350. (Optional, enum) Specific version type: `internal`, `external`,
  351. `external_gte`, `force`.
  352. end::version_type[]
  353. tag::wait_for_active_shards[]
  354. `wait_for_active_shards`::
  355. +
  356. --
  357. (Optional, string) The number of shard copies that must be active before
  358. proceeding with the operation. Set to `all` or any positive integer up
  359. to the total number of shards in the index (`number_of_replicas+1`).
  360. Default: 1, the primary shard.
  361. See <<index-wait-for-active-shards>>.
  362. --
  363. end::wait_for_active_shards[]
  364. tag::wait_for_completion[]
  365. `wait_for_completion`::
  366. (Optional, boolean) Should the request block until the operation is
  367. complete. Defaults to `true`.
  368. end::wait_for_completion[]