get-settings.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [[indices-get-settings]]
  2. == Get Settings
  3. The get settings API allows to retrieve settings of index/indices:
  4. [source,js]
  5. --------------------------------------------------
  6. $ curl -XGET 'http://localhost:9200/twitter/_settings'
  7. --------------------------------------------------
  8. [float]
  9. === Multiple Indices and Types
  10. The get settings API can be used to get settings for more than one index
  11. with a single call. General usage of the API follows the
  12. following syntax: `host:port/{index}/_settings` where
  13. `{index}` can stand for comma-separated list of index names and aliases. To
  14. get settings for all indices you can use `_all` for `{index}`.
  15. Wildcard expressions are also supported. The following are some examples:
  16. [source,js]
  17. --------------------------------------------------
  18. curl -XGET 'http://localhost:9200/twitter,kimchy/_settings'
  19. curl -XGET 'http://localhost:9200/_all/_settings'
  20. curl -XGET 'http://localhost:9200/2013-*/_settings'
  21. --------------------------------------------------
  22. [float]
  23. === Filtering settings by name
  24. The settings that are returned can be filtered with wildcard matching
  25. as follows:
  26. [source,js]
  27. --------------------------------------------------
  28. curl -XGET 'http://localhost:9200/2013-*/_settings/name=index.number_*'
  29. --------------------------------------------------