On 5/21/2013 11:20 PM, mike st. john wrote:
> Is there any way to set the collection without passing setDefaultCollection
> in cloudsolrserver?
> 
> I'm using cloudsolrserver with spring, and would like to autowire it.

It's a query parameter:

http://wiki.apache.org/solr/SolrCloud#Distributed_Requests

Here's how you do it in SolrJ:

  SolrQuery query = new SolrQuery();
  query.set("collection", "collection3");

Thanks,
Shawn

Reply via email to