Hello all,
Stupid problem over here im sure... i just cant place the finger on it... If you could point me to the problem it would be greatly apreciated.
heres the template :
curl -XPUT 'http://localhost:9200/_template/ftg' -d '
{
"order" : 0,
"template": "ftg-*",
"settings" : {
"index.refresh_interval" : "5s"
"index.number_of_replicas" : 0
"index.codec" : "best_compression"
"number_of_shards" : 5
}
},
"mappings" : {
"_default_" : {
"_all" : { "enabled" : false },
"dynamic_templates" : [ {
"message_field" : {
"match" : "message",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "analyzed", "omit_norms" : true,
"fields" : {
"raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256}
}
}
}
}, {
"string_fields" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string", "index" : "analyzed", "omit_norms" : true,
"fields" : {
"raw" : {"type": "string", "index" : "not_analyzed", "ignore_above" : 256}
}
}
}
} ],
"properties" : {
"@version": { "type": "string", "index": "not_analyzed" },
"geoip" : {
"type" : "object",
"dynamic": true,
"properties" : {
"location" : { "type" : "geo_point" }
}
}
}
}
}
}'
im sure the problem is pretty dumb, but I keep getting error code 34, execting a comma... Cant find where.
please pretty please ?
thank you