Index Replica not supported in non-Enterprise edition

Hi ,
I am working on 5.1 Community Edition install ubuntu 16.04 with 4 nodes .I have built Data ,index and query services on all 4 nodes.
when i create primary index it is not getting replicated with below query
CREATE PRIMARY INDEX on Bucket3
usually primary index is not HA ?
Then i tried this way :

CREATE PRIMARY INDEX on Bucket2
WITH {“nodes”: [“node1:8091”, “node2:8091”, “node3:8091”,“node4:8091”]};
Error :
[
{
“code”: 5000,
“msg”: “GSI CreatePrimaryIndex() - cause: Encounter errors during create index. Error=Index Replica not supported in non-Enterprise Edition\n.”,
“query_from_user”: “CREATE PRIMARY INDEX on cfg USING GSI\nWITH {“nodes”: [“b-ae2-couch2-3.aws.imovetv.com:8091”, “b-ae2-couch2-4.aws.imovetv.com:8091”, “b-ae2-couch2-1.aws.imovetv.com:8091”,“b-ae2-couch2-2.aws.imovetv.com:8091”]};”
}
]

can someone please shed some light on this .

@rvuppala GSI Index replication is supported only in Enterprise Edition. Hope this helps.

Alternative to this is create equivalent indexes (exact same index with different name).
Check 9 Duplicate Index https://blog.couchbase.com/create-right-index-get-right-performance/

ohh… got it .
can you also confirm me one more thing . when i upgraded CE CB 4.5 to 5.1 , i lost all my indexes . is there a way to bring back those indexes while upgrading .? can we resotre indexes using couchbase-restore from backup dump.

@rvuppala This is expected if we do online upgrade form 4.5 to 5.x. You can restore the indexes using couchbase backup-restore service.

in this case , you want me delete existing buckets and then restore it from backups ?

@rvuppala Please note:
All destination buckets must already exist since cbrestore does not create or configure destination buckets for you. (https://developer.couchbase.com/documentation/server/3.x/admin/Tasks/restore-cbrestore.html)
You may restore the indexes from the backups without deleting the buckets.