Hi, I am unloading data from Postgres to Elasticsearch using logstash. In this case if the index is not there in Elasticsearch logstash is creating an index with the predefined mapping. The mapping is perfect for all the data.
But for one specific array of objects in the document I need that to be nested datatype. Can do that with some filter of logstash
For example
"members": {
"properties": {
"applicant": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"application_dt": {
"type": "date"
}
}
}
This is the above mapping of one array key that is members. I want this to automatically be a nested datatype on creation
It looks like this
{
....,
members: [
{applicant: 'Name', application_dt: '2009-01-01'},
....
]
....
}