Indexing child field of disabled JSON

I have a case where a certain field of the incoming JSON does not hold type integrity, so I don't index it in elasticsearch, by setting enabled = false.

However, I want to enable a subfield of that JSON to be indexed. Is this possible?

Eg:
{
"settings" : {
"number_of_shards" : 3,
"number_of_replicas" : 2
},
"mappings": {
"_doc": {
"properties": {
"field_1": {
"enabled": false,
"properties": {
"field_2":{
"type": "object",
"enabled": true
}
}
}
}
}
}
}

Thank you

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