I have an elasticsearch index with mappings like the following:
{
"indexName": {
"mappings": {
"vault": {
"properties": {
"someMapping": {
"dynamic": "true",
"properties": {
"A": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"B": {
"type": "float"
},
"C": {
"type": "float"
}
}
}
}
}
}
}
}
I need to get the nested mappings' types, for example:
[
{Name = "A", Type = "text"},
{Name = "B", Type = "float"},
{Name = "C", Type = "float"}
]
I need this to happen trough NEST API in .NET Core application.
So far I've tried elasticClient.GetMapping(new GetMappingRequest())
with not much success since I cannot access the nested properties of the field I need (in this example "someMapping")