Hi,

Going to start playing with SolrCloud soon, and have a few questions which is 
not answered on http://wiki.apache.org/solr/SolrCloud

a) I want to have multiple cores on the same server, which may be part of the 
same collection
http://localhost:8983/solr/admin/cores?action=CREATE&name=core1&collection=collection1&shard=shardA
http://localhost:8983/solr/admin/cores?action=CREATE&name=core2&collection=collection1&shard=shardB

I now want to send some documents to shard A and shard B.
In the Wiki, the update example addresses the collection:
    http://localhost:8983/solr/collection1/update
But what happens then? Which of the shards will the document end up in? Isn't 
the correct way to address the core directly 
(http://localhost:8983/solr/core1/update)? But how does SolrCloud know whether 
"core1" is a core and not a collection when updating and searching?

b) Let's say I have ZK setup with a 2x2 grid with 2 shards each having one 
replica.
Now I want to add a 3rd shard, bootstrapped form existing folder with config 
and data/index.
How do I include this into the cluster? Is it enough to run a CREATE command on 
the master:
http://localhost:8983/solr/admin/cores?action=CREATE&name=core3&collection=collection1&shard=shardC
...and the corresponding replica cores will be setup automatically?

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com

Reply via email to