Hm... still no success. Can anyone point me to a doc that explains how to define and reference core properties? I've had no luck searching Google.
Shalin, I gave an identical '<property name="shardsParam"/>' tag to each of my cores, and referenced ${solr.core.shardsParam} (with no default specified via a colon) in solrconfig.xml. I get an error on startup: SEVERE: Error in solrconfig.xml:org.apache.solr.common.SolrException: No system property or default value specified for solr.core.shardsParam (Not to mention that even if this *did* work, it wouldn't help me with making most cores *not* specify a &shards query parameter.) Clearly I'm doing something wrong, but I'm in the dark as to how to do it right. Any help would be appreciated! Michael On Fri, Oct 9, 2009 at 10:13 AM, Michael <solrco...@gmail.com> wrote: > On Fri, Oct 9, 2009 at 6:03 AM, Shalin Shekhar Mangar > <shalinman...@gmail.com> wrote: >> Michael, the last line does not seem right. The <core> tag has nothing >> called shardParam. If you want to add a core property called shardParam, you >> need to add something like this: >> >> <cores adminPath="/admin/cores" shareSchema="true"> >> <core name="core0" instanceDir="./"> >> >> <property name="shardsParam" >> value="localhost:9990/core1,localhost:9990/core2,localhost:9990/core3,localhost:9990/core4"/> >> </core> >> </cores> > > Thanks, Shalin! I had seen a solrconfig.xml referencing > ${solr.core.instanceDir} which *is* defined as a <core> attribute, so > I falsely assumed it would accept arbitrary properties as attributes > on the <core> tag. >