With the Nest client version < 2.0, it was possible to get a list of all the type mappings of an index, including the names of the mappings. In Nest version > 2.0, it seems this is not possible. A list of mappings can be returned, but the names are not included. For example, I am using the following code to get the list of mappings:
var response = elasticClient.GetMapping<object>(mapping => mapping.Index("index.name").AllTypes());
The raw response from elasticsearch contains the names of mappings, but the response from the Nest client does not. It only contains the list of properties in the mappings. Any idea how to do this with the Nest client version > 2.0?