Unomi with Opensearch and Cross-Cluster-Replication using aliases - can't execute a Single index op

99 Views Asked by At

I am currently trying to set up cross-cluster-replication for Opensearch in Apache Unomi. My idea was the following: We have two data centers, dc1 and dc2. So I changed Unomi so that on dc1 it creates indices in the form of dc1-<indexname>-index and it creates aliases called <indexname>, e.g. dc1-context-actiontype-index with the alias context-actiontype. On dc2 the indices are then called dc2-<indexname>-index.

While running the integration tests of Unomi I noticed that this request is fired among others: GET /context-persona/ doc/europeanVisitor , which leads to the following exception: "illegal argument exception", "reason": "alias [<indexname>] has more than one index associated With it [dc1-<indexname>-index, dc2-<indexname>-index], can't execute a Single index op".

Now the question is: Is it somehow possible in Opensearch to read documents from both indices using the alias, or I would have to implement all the logic for reading from aliases and then handling each associated index in Unomi itself ?

0

There are 0 best solutions below