Team is any way to get all Mapping type of an index ( only type ) not mapping definitions.
There is one idea , we can
- get all the documents
- grep _type field
- filter unique fields
But i cann't retrive all documets via match_all query , is there any way to get all documents.
Hi all ,
here the simple way
you can use jq ( json parser )
curl -XGET http://IP:PORT/index_name/_mapping?pretty | jq '..mappings | to_entries | select(.key) |.key'
sure it will give all mappings on that index. worked for me