Hi Chris,

Thanks for the reply. here are the requesthandlers from solrconfig.xml:

<requestHandler name="standard" class="solr.SearchHandler" default="true">
    <!-- default values for query parameters -->
     <lst name="defaults">
       <str name="echoParams">explicit</str>

       <int name="rows">10</int>
       <str name="fl">*</str>
       <str name="version">2.1</str>

     </lst>
  </requestHandler>


<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="qf">
        text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
     </str>
     <str name="pf">
        text^0.2 features^1.1 name^1.5 manu^1.4 manu_exact^1.9
     </str>
     <str name="bf">
        ord(popularity)^0.5 recip(rord(price),1,1000,1000)^0.3
     </str>
     <str name="fl">
        id,name,price,score
     </str>
     <str name="mm">
        2&lt;-1 5&lt;-2 6&lt;90%
     </str>
     <int name="ps">100</int>
     <str name="q.alt">*:*</str>
     <!-- example highlighter config, enable per-query with hl=true -->
     <str name="hl.fl">text features name</str>
     <!-- for this field, we want no fragmenting, just highlighting -->
     <str name="f.name.hl.fragsize">0</str>
     <!-- instructs Solr to return the field itself if no query terms are
          found -->
     <str name="f.name.hl.alternateField">name</str>
     <str name="f.text.hl.fragmenter">regex</str> <!-- defined below -->
    </lst>
  </requestHandler>

Thanks,
Anshul


On Wed, Mar 4, 2009 at 9:50 AM, Chris Hostetter <hossman_luc...@fucit.org>wrote:

>
> Anshul: It doesn't look like you ever got an answer to this question, did
> you ever find a solution?
>
> I'm not very shard savy, but if the numFound is coming back non-zero, the
> best guess i have is that somewhere you are overridding the default "rows"
> param with a value of 0.
>
> if that's not it: can you post your requestHandler configurations
> from solrconfig.xml? that might shed some light on things for people.
>
> : Date: Thu, 19 Feb 2009 22:30:19 +0100
> : From: Anshul jain
> : Subject: Shard Query Problem
> :
> : Hi,
> :
> : I'm using distributed Solr with two machines.
> :
> : when I query in URL: http://lca2-s5-pc04:8080/solr/select?&q=name:john
> : I get <result name="response" numFound="17" start="0"> and 10 documents
> are
> : shown.
> :
> : when I query in URL:
> :
> http://lca2-s5-pc04:8080/solr/select?shards=lca2-s5-pc04:8080/solr&q=name:john
> : I get <result name="response" numFound="7" start="0"/> and 0 documents
> are
> : shown.
> :
> : when I query in URL:
> :
> http://lca2-s5-pc04:8080/solr/select?shards=lca2-s5-pc04:8080/solr,lca2-s5-pc05:8080/solr&q=name:john
> : <result name="response" numFound="336" start="0"/> and again 0 documents
> are
> : shown.
> :
> : I'm not able to figure out why it is not able to use SHARDS for querying
> and
> : return documents. Can it be a Solr-config problem??
>
>
>
> -Hoss
>
>


-- 
Anshul Jain

Reply via email to