common-parms.asciidoc 10 KB

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