lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shalin Shekhar Mangar <shalinman...@gmail.com>
Subject Re: Default query parameter for one core
Date Fri, 09 Oct 2009 10:03:48 GMT
On Wed, Oct 7, 2009 at 11:16 PM, Michael <solrcoder@gmail.com> wrote:

> I'd like to have 5 cores on my box.  core0 should automatically shard to
> cores 1-4, which each have a quarter of my corpus.
> I tried this in my solrconfig.xml:
>
>  <requestHandler name="standard" class="solr.SearchHandler" default="true">
>     <lst name="defaults">
>       <str name="shards">${solr.core.shardsParam:}</str> <!-- aka, if
the
> core specifies a shardsParam, great, and if not, use nothing -->
>     </lst>
>  </requestHandler>
>
> and this in my solr.xml:
>
> <cores adminPath="/admin/cores" shareSchema="true">
>  <core name="core0" instanceDir="./"
>
>
>  shardsParam="localhost:9990/core1,localhost:9990/core2,localhost:9990/core3,localhost:9990/core4"
> />
>

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>

-- 
Regards,
Shalin Shekhar Mangar.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message