Hello together,
first my excerpt from my mapping:
"manufacturerTitle_ID" : {
"type" : "string",
"index" : "not_analyzed"
},
"merkmale" : {
"type" : "nested",
"include_in_parent" : true,
"properties" : {
"key" : {
"type" : "string",
"index" : "not_analyzed"
},
"value" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"merkmale_key_value" : {
"type" : "string",
"index" : "not_analyzed"
}
my problem is that i need a filter to "merkmale_key_value" from an aggregation in merkmale. I need the filtered doc_count, but every time this is 0.....
I think my query is wrong, but i dont find a solution.
Perhaps somebody can help me or give me a hint?
The same filter is used in the aggregation manufacturer and works great.... so i think the problem has been invoked by the nested element?
now my excerpt from my query, if you need further infos to help me, please ask and thanks in advance!!!!
[aggregations] => Array
(
[manufacturer] => Array
(
[terms] => Array
(
[field] => manufacturerTitle_ID
[size] => 0
[order] => Array
(
[_term] => asc
)
)
[aggs] => Array
(
[filtered] => Array
(
[filter] => Array
(
[terms] => Array
(
[merkmale_key_value] => Array
(
[0] => Array
(
[0] => 26_163
)
)
)
)
)
)
)
)
[merkmale] => Array
(
[nested] => Array
(
[path] => merkmale
)
[aggs] => Array
(
[key] => Array
(
[terms] => Array
(
[field] => merkmale.key
[size] => 5
)
[aggs] => Array
(
[value] => Array
(
[terms] => Array
(
[field] => merkmale.value
[size] => 5
)
[aggs] => Array
(
[filtered] => Array
(
[filter] => Array
(
[terms] => Array
(
[merkmale_key_value] => Array
(
[0] => 31_200,31_201
)
)
)
)
)
)
)
)
)