2

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?

1 Answers1

4

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.

Simon Prickett
  • 3,838
  • 1
  • 13
  • 26