Solr Cloud Document Routing

I currently have a multi-level zookeeper server setting up a single shard. Unique identifiers are generated automatically with solr.

Now I have a zookeeper mult solr server, multiple splinter requirement. I need to be able to redirect updates to a specific shard.

After reading http://searchhub.org/2013/06/13/solr-cloud-document-routing/ I am worried that I cannot allow solr to generate random unique identifiers if I want to redirect updates to a specific shard.

Can't anyone confirm this for me and maybe give an explanation of the best approach.

thank

+3
source share
1 answer

It is not possible to redirect documents to a specific shard because it is controlled by zookeeper.

The solution to your problem is that you have to create two collections instead of two fragments. Use your first collection with two servers, and the second collection can use a third server, and then you can send your updates to specific servers. The design should look like

collection1---->shard1---->server1,server2
collection2---->shard1----->server3

This way you can separate your indexes according to your requirements.

+1
source

Source: https://habr.com/ru/post/1536521/


All Articles