Hi, I have been going over the docs for RS2 and have the following questions:
- What is the syntax for PREFIX? Can I specify some pattern or is a wildcard always implied?
A common redis key pattern is movies:123, but also movies:123:trailer movies:123:comments etc… where additional data is stored under the same namespace as the “parent” object.
Is it possible to only index movies:\d+ or movies:[^:] - or is it just “movies:*”?
If not, can one use FILTER to achieve a similar result (by restricting the keyspace indexed based on some data in the hash) - and if yes, what is the performance penalty of that?
- RS 2 migration
What happens to existing indexes if one migrates to the RS 2 code? Docs say that if PREFIX is omitted, RS2 will index all hashes. Will that happen to our existing indexes if we migrate - i.e. suddenly RS will add every hash saved in the system into all existing RS indexes?