On 1/17/2013 9:24 PM, Mark Miller wrote:
There are a couple ways you can proceed. You can preconfigure some SolrCores in
solr.xml. Even if you don't, you want a solr.xml, because that is where a lot
of cloud properties are defined. Or you can use the collections API or the core
admin API.
I guess I'd recommend the collections API.
You have a couple options for getting in config. I'd recommend using the ZkCli
tool to upload each of your config sets:
http://wiki.apache.org/solr/SolrCloud#Getting_your_Configuration_Files_into_ZooKeeper
After that, use the collections API to create the necessary cores on each node.
Another options is to setup solr.xml like you would locally, then start with
-Dconf_bootstrap=true and it will duplicate your local config and collection
setup in ZooKeeper.
I have a cloud up and running with one config and collection, and I
think I understand how to create more of both.
Is the following the recommended way of choosing a collection with
SolrJ's CloudSolrServer, or should I be doing something different?
server.setDefaultCollection("test1");
Any SolrJ examples for cloud-related tasks would be appreciated.
Thanks,
Shawn