We use the cross-domain search functionality in Opensearch domains, which allows us to create connections between domains and use the Opensearch cross-cluster search feature to execute a single query with results returned from each domain.
https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cross-cluster-search.html
Then we could run queries (with aggregations) against multiple domains by including comma separated connection aliases in the index name ("connection-alias:index" as each remote index name):
GET https://a-domain.us-east-1.es.amazonaws.com/a_index,cluster_a_to_b:b_index,cluster_a_to_c:c_index/_search
{
"query": {
"match": {
"user": "domino"
}
}
}
Is there an equivalent feature in Serverless that lets you search across multiple "collection" indexes with a single query?
https://opensearch.org/docs/latest/security/access-control/cross-cluster-search/
Could we use multiple collection name aliases the same way instead of the domain connection aliases?