How to get field name and data type by javascript

Hi All,

I need to get information of index/type by javascript and below is expected
result

In ES by mapping command via Sense
{
"testindex": {
"mappings": {
"test": {
"_id": {
"path": "anlz"
},
"properties": {
"f1": {
"type": "string"
},
"f2": {
"type": "date"
}
}
}
}
}
}

and I need to get only field name and data type by javascript to list in
front page as below

Column Name : f1
Data Type : string
Column Name : f2
Data Type : date

Is it possible to get this? If yes, How to do?

Thanks
Hiko

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4cacc4d5-adda-4940-b704-e870bd11fa10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.