Here is a sample of my document structure and a document that would be returned by the query i seek.
I want to query for documents that have detections where a detection where labelName is dog and another detection with labelName sofa
Basically in the array of objects find docs with two types of detections or two conditions.
[
{
"event": {
"cn": "lr",
"detection-human-timestamp": "2022-09-18 17:50:40.621833",
"detectionTS": 1663523440.6216981,
"detections": [
{
"confidence": 0.8150956034660339,
"endX": 220,
"endY": 207,
"id": 2,
"labelName": "dog",
"startX": 183,
"startY": 145
},
{
"confidence": 0.9939553141593933,
"endX": 327,
"endY": 249,
"id": 0,
"labelName": "chair",
"startX": 264,
"startY": 130
},
{
"confidence": 0.9754021763801575,
"endX": 323,
"endY": 424,
"id": 1,
"labelName": "sofa",
"startX": 40,
"startY": 181
}
],
"ohh": "k1",
"duration": 992.843
}
}
]