I have installed the rediSearch module for an application, but I am getting the error Cannot create index on db != 0 do you know what it means?
CodePudding user response:
This is because RediSearch only operates on the default (0) database in Redis. Using numbered databases and the SELECT
command is somewhat of an anti-pattern in Redis and I'd always recommend instead namespacing your keys using something like ":" as a separator or using different instances of redis-server if you have different types of data storage needs that you're currently spreading out across different numbered databases in the same redis-server instance.