i have created a mapping like this :
'mappings' => [
'my_type' => [
'properties' => [
'folder_applications' => [
'type' => 'nested',
"properties" => [
"folder" => [
"type" => "nested",
"properties" => [
"employer_id" => [
"type" => "long"
],
"id" => [
"type" => "long"
]
]
],
"hire_stage_id" => [
"type" => "long"
],
"is_applied" => [
"type" => "long"
],
"status_id" => [
"type" => "long"
]
]
],
]
]
]
my question is how can i write nested inner_hits for this?
for example i want search in folder for "id" field and in folder_applications for "status_id" field..
i tried many ways and search in documents and read other user problems.. but i couldn't write my own..
can anyone help me in this?
thanks with advanced.