when I used attachment type in normal field like "file",it work well.
However, when I use attachment type in nested object, it work abnormal: no content but base64 and it cann't be highlight, too. I add "include_in_root": true but still not work.
{
"attachment": {
"properties": {
"file": {
"type": "nested",
"include_in_root": true,
"properties": {
"name": {
"type": "string",
"store": "yes"
},
"content": {
"type": "attachment",
"include_in_root": true,
"copy_to": "copy",
"fields": {
"file": {
"store": "yes",
"index": "analyzed",
"include_in_root": true,
"copy_to": "copy"
},
"title": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
},
"date": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
},
"author": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
},
"keywords": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
},
"content_type": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
},
"content_length": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
},
"language": {
"include_in_root": true,
"copy_to": "copy",
"store": "yes"
}
}
}
}
},
"copy": {
"type": "string",
"store": "yes"
}
}
}
}
Is there something wrong?