Index Replica in 4.5

Hello,

According to the 4.5 documentation here, I should be able to create a replica of my index by using the WITH clause. I’ve tried this and am getting an error from my second node saying that the index already exists. Is index replica only available in the enterprise version? I am using 4.5.0-2601 Community Edition (build-2601). I also tried using a view index and got an error saying Views not allowed for WITH keyword.

Thanks,

K

According to the documentation replica is only allowed in GSI. Also The index name needs to be different each time with exact definition of index keys and where clause.

To create a replica of a GSI, you can create an identical index definition with unique index names under 2 or more nodes.

Thank you @vsr1. This was a silly error on my part since I was not using a distinct name.