Solr Cloud Document Routing

后端 未结 1 483
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-20 19:33

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 sh

相关标签:
1条回答
  • 2021-01-20 20:33

    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.

    0 讨论(0)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题