On 8/25/23 15:35, Mike Drob wrote:
I’m not sure if this is a Solr cloud only thing, I don’t think it works
with leader/follower mode, but there’s probably similar principles to apply.
Standalone Solr does not have aliases.
I simulated something like that functionality with core swapping, clear
back on 1.4.0 when SolrCloud was more of an idea than actual code, and I
had never even looked at the idea.
I had two core directories for each shard ... for shard 0, one was s0_0,
the other s0_1. One of the cores was named s0_live and the other
s0_build. To do a reindex, I would index into the _build cores, and
once the indexing was complete, do a core swap of all the _build cores
with the matching _live core.
Doing shards without SolrCloud was an interesting challenge.
I used the _0 and _1 names for the directory because I didn't want to
get into a situation where the _build core was in a directory named _live.
Thanks,
Shawn