I have my cluster and I want to know all indexes and types' names in it. I use Sense.
You can query localhost:9200/_status and that will give you a list of indices and information about each.
Elasticsearch will get significant slower if you just add some big number as size, one method to use to get all documents is using scan and scroll ids. The results from this would contain a _scroll_id which you have to query to get the next 100 chunk. This answer needs more updates. search_type=scan is now deprecated.
You can view any existing index by using the below CURL. Please replace the index-name with your actual name before running and it will run as is. Show activity on this post. This is to create and view the content, not to view the index.
curl -XGET 'http://localhost:9200/_cat/indices?v'
will give you all the indexes.
curl -XGET 'http://localhost:9200/_mapping?pretty=true'
will give you the document types in these indexes, together with their mappings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With