Question

Currently I have a zookeeper multi solr server, single shard setup. Unique ids are generated automatically by solr.

I now have a zookeeper mult solr server, multi shard requirement. I need to be able to route updates to a specific shard.

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

Cannot anyone confirm this for me and perhaps give an explanation of the best approach.

Thanks

Was it helpful?

Solution

There is no way you can route your documents to a particular shard since it is being managed by the zookeeper.

Solution to your problem is that you should create two collections instead of two shards. Use your 1st collection with two servers and 2nd collection can use the third server and then you can send your updates to particular servers.The design should look like

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

This way you can separate your indexes as per your requirement.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top