I'm trying to create an index template as followed:
client.indices.putTemplate({name:"loctmplt", body: {
index_patterns: ['*'],
template: {
mappings: {
properties: {
location: {
properties: {
coordinates: {
type: "geo_point",
ignore_malformed: false,
ignore_z_value: true
}
}
}
}
}
}
}}).then( res => console.log(res), err => console.error(err))
This creates an empty legacy index template, how do I create a modern working index template? Information about this is difficult to find.