I’m using the RealTimeDatabase, the name of my current index
is sneakers, all of my searchable attributes are there, and everything works fine. I’ve decided to move all of the attributes one level deeper to sneakers/brands, and set the brands part as the index
. The issue is when I went to the console to rename the index it kept failing.
It says " Please confirm by typing the index name sneakers", which I did.
Then it says “New index name” and when I enter sneakers/brands and press rename it says “Failed to rename index.”. I’m assuming it’s because of the forward slash.
How can I set the index name in the console to sneakers/brands?
My db layout now and the searchable attributes are name and condition:
@sneakers
@postId_123
-condition: used
-name: nike
-price: 90
@postId_456
-condition: new
-name: adidas
-price: 200
// in my view controller: apiClient.index(withName: "sneakers")
// in my index.js file: client.initIndex('sneakers')
What I want to update it to (I haven’t made the changes yet):
@sneakers
@brands
@postId_123
-condition: used
-name: nike
-price: 90
@postId_456
-condition: new
-name: adidas
-price: 200
// in my view controller: apiClient.index(withName: "sneakers/brands")
// in my index.js file: client.initIndex('sneakers/brands')