get-settings.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. [[indices-get-settings]]
  2. == Get Settings
  3. The get settings API allows to retrieve settings of index/indices:
  4. [source,js]
  5. --------------------------------------------------
  6. GET /twitter/_settings
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEST[setup:twitter]
  10. [float]
  11. === Multiple Indices and Types
  12. The get settings API can be used to get settings for more than one index
  13. with a single call. General usage of the API follows the
  14. following syntax: `host:port/{index}/_settings` where
  15. `{index}` can stand for comma-separated list of index names and aliases. To
  16. get settings for all indices you can use `_all` for `{index}`.
  17. Wildcard expressions are also supported. The following are some examples:
  18. [source,js]
  19. --------------------------------------------------
  20. GET /twitter,kimchy/_settings
  21. GET /_all/_settings
  22. GET /log_2013_*/_settings
  23. --------------------------------------------------
  24. // CONSOLE
  25. // TEST[setup:twitter]
  26. // TEST[s/^/PUT kimchy\nPUT log_2013_01_01\n/]
  27. [float]
  28. === Filtering settings by name
  29. The settings that are returned can be filtered with wildcard matching
  30. as follows:
  31. [source,js]
  32. --------------------------------------------------
  33. GET /log_2013_-*/_settings/index.number_*
  34. --------------------------------------------------
  35. // CONSOLE
  36. // TEST[continued]