Swapping index?

Hello,

I’m new to Redis and Redisearch, and am considering Redisearch to replace a Lucene-based system.

We’re generating Lucene indicies offline daily and swapping each node one by one.

We’re using N-shard M-replicas. Is it possible to simulate this behavior with Redis and Redisearch?

Thanks,

By swapping an index, do you mean renaming it?
Mark Nunberg | Senior Software Engineer
Redis Labs - home of Redis

Email: mark@redislabs.com

Not just renaming it. Actually I mean replacing the whole database (data + indices in each shard) with a new one.

I’m not sure it makes sense, but maybe generating a snapshot (rdb) offline and let each node recover from that snapshot?

You can generate the new index in parallel offline.
And then drop the old one and rename the new one to the original index name