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

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?


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
To view this discussion on the web visit
For more options, visit