Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
“version”: {
“distribution”: “opensearch”,
“number”: “2.4.0”,
“build_type”: “tar”,
“build_hash”: “744ca260b892d119be8164f48d92b8810bd7801c”,
“build_date”: “2022-11-15T04:42:29.671309257Z”,
“build_snapshot”: false,
“lucene_version”: “9.4.1”,
“minimum_wire_compatibility_version”: “7.10.0”,
“minimum_index_compatibility_version”: “7.0.0”
}
Describe the issue:
Followed the example provided at Index rollups - OpenSearch Documentation
I do see Rollups for multiple indexes being created (rollup_ndx-metric-000001, rollup_ndx-metric-000002, rollup_ndx-metric-000003) and I am able to query them individually. But when I try to search multiple Rollups via the following way, it does not seem to be using all the rolled up indexes to get the results as I am not seeing the results as expected.
GET /rollup_ndx-metric-*/_search
{
"size": 0,
"query": {
"match_all": {}
},
"aggs": {
"max": {
"max": {
"field": "value"
}
},
"min": {
"min": {
"field": "value"
}
},
"avg": {
"avg": {
"field": "value"
}
},
"sum": {
"sum": {
"field": "value"
}
}
}
}
But if I remove the match all query, I see the expected results. Seems like there is an issue with using query.
"query": {
"match_all": {}
},