Can you explain a little bit more, what you are trying to do?
I don't get, what you want to do.

On 07/06/2013 08:39 AM, aniljayanti wrote:
Hi,

I am working on solr 3.3. i am getting total 120 records with below query,
in response xml "numFound" is showing  540 records.

http://localhost:8080/test/select?q=*:*&rows=*120*

<response>
  <lst name="responseHeader">
   <int name="status">0</int>
   <int name="QTime">1</int>
   <lst name="params">
     <str name="q">*:*</str>
     <str name="rows">120</str>
   </lst>
   </lst>
   <result name="response" numFound="540" start="0">
      <doc>
        <str name="Label">green</str>
        <str name="Label">blue</str>
        <str name="Label">red</str>
      </doc>
      ...... (120 records)
</response>

i want to restrict the result records to 120. How can i get *"numFound=120"*
like below, even though existing records are 540.


<response>
  <lst name="responseHeader">
   <int name="status">0</int>
   <int name="QTime">1</int>
   <lst name="params">
     <str name="q">*:*</str>
     <str name="rows">*120*</str>
   </lst>
   </lst>
   <result name="response" numFound="120" start="0">
      <doc>
        <str name="Label">green</str>
        <str name="Label">blue</str>
        <str name="Label">red</str>
      </doc>
      ...... (120 records)
</response>



Please suggest me how to query to get desired numFound records.

thanks in advance.

aniljayanti



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Restrict-change-numFound-solr-result-tp4075882.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to