{
"_shards": {
"total": 1,
"failed": 0,
"successful": 1,
"skipped": 0
},
"hits": {
"hits": [],
"total": {
"value": 7,
"relation": "eq"
},
"max_score": null
},
"took": 1,
"timed_out": false,
"aggregations": {
"filters_agg": {
"buckets": {
"first": {
"gendermale": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"doc_count": 4,
"key": "MALE"
},
{
"doc_count": 3,
"key": "FEMALE"
}
]
},
"doc_count": 7,
"genderfemale": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"doc_count": 4,
"key": "MALE"
},
{
"doc_count": 3,
"key": "FEMALE"
}
]
},
"pass_fail": {
"value": 7
}
}
}
}
}
}
I am doing something like this but its giving error:
ctx.results[0].aggregations.gendermale.doc_cout>3
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.