get-index.asciidoc 801 B

123456789101112131415161718192021
  1. [[indices-get-index]]
  2. === Get Index
  3. The get index API allows to retrieve information about one or more indexes.
  4. [source,js]
  5. --------------------------------------------------
  6. GET /twitter
  7. --------------------------------------------------
  8. // CONSOLE
  9. // TEST[setup:twitter]
  10. The above example gets the information for an index called `twitter`. Specifying an index,
  11. alias or wildcard expression is required.
  12. The get index API can also be applied to more than one index, or on
  13. all indices by using `_all` or `*` as index.
  14. NOTE: Before 7.0.0, the 'mappings' definition used to include a type name. Although mappings
  15. in responses no longer contain a type name by default, you can still request the old format
  16. through the parameter include_type_name. For more details, please see <<removal-of-types>>.