Validation Failed: 1: mapping type is missing

Hi,
I'm a newbie to the ELK stack and I'm probably stuck due a syntax error.
Any help would be most appreciated.

I've installed ES and I'm trying to create a mapping for my index to fit the following json:
{
"facets": [
{
"name": "https://web_address_example.aspx",
"results": [
{
"count": 13995
},
{
"average": 2.188390496605931
},
{
"max": 157.3
},
{
"min": 0.391
}
]
}
}

The mapping syntax I've tried so far but fails is:

post /db_average_response_time/_mappings/
{
"mapping":
{
"facets" :
{
"fields" :
{
"name" :
{
"type" : "text"
},
"results" :
{
"fields" :
{
"count" :
{
"type" : "integer"
},
"average" :
{
"type" : "double"
},
"max" :
{
"type" : "double"
},
"min" :
{
"type" : "double"
}
}
}
}
}
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.