Closed equinor-ruaj closed 5 months ago
The corresponding query, from Raymond:
{
"query": {
"bool": {
"must": [
{
"term": {
"data.content.keyword": {
"value": "seismic"
}
}
},
{
"term": {
"data.time.t0.label.keyword": {
"value": "base"
}
}
},
{
"term": {
"data.time.t1.label.keyword": {
"value": "monitor"
}
}
}
]
}
},
"_source": ["data.time"],
"aggs": {
"case": {
"composite": {
"sources": [
{
"cases": {
"terms": {
"field": "fmu.case.uuid.keyword"
}
}
}
],
"size": 1000
}
}
},
"size": 1,
"track_total_hits": true
}
First version solution to: https://github.com/equinor/fmu-sumo/issues/324
First version to implement: Add "has" keyword to case filter: filter cases where the case has at least one child with the specified "has" values.