Solr only returns the number of documents specified by the "rows" parameter.
You can page through your results by specifying, say, &start=20&rows=20 then &start=40&rows=20 etc. Or you can bump rows, but you really don't want to return huge result sets so you'll probably be paging sometime. But it is often a bad idea to return lots of docs, what user is going to page through 125 pages? Or even scroll down to the 500th document? What I'm asking is whether there's really a use-case for this in your app. Best Erick On Sat, Jul 6, 2013 at 2:39 AM, aniljayanti <aniljaya...@yahoo.co.in> 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. >