lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <s...@elyograg.org>
Subject Re: SolrCloud: Programmatically create multiple collections?
Date Wed, 14 Aug 2013 14:05:27 GMT
On 8/14/2013 12:34 AM, xinwu wrote:
> Hey Shawn .Thanks for your reply.
> I just want to access the base_url easily by a short instanceDir name.

For index updates and queries, you *can* access it by the
/solr/mycollection name.  Although there may be no core by that name,
the base URL will work.

Just now, I also tried /solr/mycollection/admin/system, which I expected
would NOT work because I have the collection_shardN_replicaN core names.
 On my 4.2.1 production cloud, this DOES work.  Your email had given me
the idea of filing a feature request to allow this shortcut, but it
appears that it's already a feature.  In situations where
maxShardsPerNode is used, you wouldn't be able to use that shortcut to
get all the info, but you could get most of it.

I can think of a workaround for the maxShardsPerNode limitation:  If you
access /solr/admin/cores on a machine before asking for further info,
your program will know what cores exist on that machine, so you'd be
able to get ALL info.

Thanks,
Shawn


Mime
View raw message