Based on my tests, I’m pretty sure the answer is no, but I’m asking just in case: Is it possible to retrieve highlights for a field indexed as type document with dynamic mapping? This is the field definition for the index:
"properties": {
"dynamic": true,
"type": "document"
}
It’s indexed as dynamic, 'cause the attributes inside that properties object can vary depending on the document.