One of the points of sharding is to use more _machines_. Running multiple
shards on a single machine is not magically going to make things faster. In
fact I'd expect your process to consume more resources since the
cores are now not sharing common data (i.e. having a single word
in more than one core will use two instances of that word).

Best
Erick

On Fri, May 11, 2012 at 3:38 AM, arjit <arjit...@gmail.com> wrote:
> My query is
> SolrQuery sQuery = new SolrQuery(query.getQueryStr());
>        sQuery.setQueryType("dismax");
>
>
>        sQuery.setRows(100);
>
>        if (!query.isSearchOnDefaultField()) {
>            sQuery.setParam("qf", queryFields.toArray(new
> String[queryFields.size()]));
>        }
>        sQuery.setFields(visibleFields.toArray(new
> String[visibleFields.size()]));
>
>        if(query.isORQuery())
>        {
>            sQuery.setParam("mm","1");
>        }
>
> My search is
>
> <requestHandler name="dismax" class="solr.SearchHandler" >
>    <lst name="defaults">
>     <str name="defType">dismax</str>
>     <str name="echoParams">explicit</str>
>     <float name="tie">0.01</float>
>      <str
> name="shards">localhost:9090/solr/book1,localhost:9090/solr/book2,localhost:9090/solr/book3,localhost:9090/solr/book4,localhost:9090/solr/book5,localhost:9090/solr/book6</str>
>     <str name="qf">
>
>         text^2.0
>
>
>     </str>
>
>     <str name="fl">
>        title item_id author titleMinusAuthor
>     </str>
>
>     <int name="ps">4</int>
>     <str name="q.alt">*:*</str>
>
>     <str name="hl.fl">text features name</str>
>
>     <str name="f.name.hl.fragsize">0</str>
>
>     <str name="f.name.hl.alternateField">name</str>
>     <str name="f.text.hl.fragmenter">regex</str>
>   </lst>
>
>      </requestHandler>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Solr-Shards-multi-core-slower-then-single-big-core-tp3979115p3979243.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to