SELECT keyspace_id, name, state FROM system:indexes
[
{
"keyspace_id": "alfheim",
"name": "#primary",
"state": "online"
},
{
"keyspace_id": "midgard",
"name": "idx_entity_midgard",
"state": "online"
},
{
"keyspace_id": "midgard",
"name": "#primary",
"state": "online"
}
]
When I try to create an index that I droped and is not currenltly there i get this exception:
CREATE INDEX `idx_entity_alfheim` ON `alfheim`(`type`,`domain`,`updatedAt`)
[
{
"code": 5000,
"msg": "GSI CreateIndex() - cause: Index already exist. Fail to create idx_entity_alfheim in bucket alfheim",
"query_from_user": "CREATE INDEX `idx_entity_alfheim` ON `alfheim`(`type`,`domain`,`updatedAt`)"
}
]
You are running Couchbase Server Community Edition 6.0.0 build 1693.