Re: Restrict/change numFound solr result

2013-07-09 Thread aniljayanti
Hi Erick,

thanks for reply, I am doing the same thing already. But for paging
calculation i am depending on numFound=120 value. That result i want
.(result name=response numFound=120 start=0)

thanks

aniljayanti



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


Re: Restrict/change numFound solr result

2013-07-09 Thread Erick Erickson
No, there's no good way to make Solr return
numFound=120 when there are 540 (or
whatever) records. Why do you care?
If you need to stop at 120, just stop at 120 and ignore
the numFound.

If you need to display the 120 to the end user even if there
are more docs, just do that.

Best
Erick

On Tue, Jul 9, 2013 at 2:33 AM, aniljayanti aniljaya...@yahoo.co.in wrote:
 Hi Erick,

 thanks for reply, I am doing the same thing already. But for paging
 calculation i am depending on numFound=120 value. That result i want
 .(result name=response numFound=120 start=0)

 thanks

 aniljayanti



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


Re: Restrict/change numFound solr result

2013-07-08 Thread Ralf Heyde

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=status0/int
   int name=QTime1/int
   lst name=params
 str name=q*:*/str
 str name=rows120/str
   /lst
   /lst
   result name=response numFound=540 start=0
  doc
str name=Labelgreen/str
str name=Labelblue/str
str name=Labelred/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=status0/int
   int name=QTime1/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=Labelgreen/str
str name=Labelblue/str
str name=Labelred/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.




Re: Restrict/change numFound solr result

2013-07-08 Thread aniljayanti
Hi Erick,

thanks for reply, after querying using solr getting 540 records, but i had a
requirement to get only 120 records even though it may have greater than
120. After getting results i am calculating the paging on the basis of
*numFound=120*.That is why i am checking this. if i take 12 record count
per page then i'll get 10 pages. (120/12 =10 pages). Please help.

thanks,

Aniljayanti.



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


Re: Restrict/change numFound solr result

2013-07-08 Thread aniljayanti
Hi Ralf,

thanks for reply,

I have 540 records as a solr result. In that i want only 120 records
(result name=response numFound=120 start=0), based on the numFound
node value i am calculating paging concept. i want to show 12 records per
page then (120/12 = 10 pages) i would have 10 pages. Right. So i want that
scenario.  . i do not want total 540 records as (result name=response
numFound=540) this.

thanks,

aniljayanti



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


Re: Restrict/change numFound solr result

2013-07-08 Thread Erick Erickson
Just specify successively larger start=... parameters,
When you want page 1 you specify
start=0rows=10
page 2:
start=10rows=10

and so on.

see: http://wiki.apache.org/solr/CommonQueryParameters#start

Best
Erick

On Mon, Jul 8, 2013 at 5:36 AM, aniljayanti aniljaya...@yahoo.co.in wrote:
 Hi Ralf,

 thanks for reply,

 I have 540 records as a solr result. In that i want only 120 records
 (result name=response numFound=120 start=0), based on the numFound
 node value i am calculating paging concept. i want to show 12 records per
 page then (120/12 = 10 pages) i would have 10 pages. Right. So i want that
 scenario.  . i do not want total 540 records as (result name=response
 numFound=540) this.

 thanks,

 aniljayanti



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


Restrict/change numFound solr result

2013-07-06 Thread aniljayanti
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=status0/int 
  int name=QTime1/int 
  lst name=params
str name=q*:*/str 
str name=rows120/str 
  /lst
  /lst
  result name=response numFound=540 start=0
 doc
   str name=Labelgreen/str
   str name=Labelblue/str
   str name=Labelred/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=status0/int 
  int name=QTime1/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=Labelgreen/str
   str name=Labelblue/str
   str name=Labelred/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.


Re: Restrict/change numFound solr result

2013-07-06 Thread Erick Erickson
Solr only returns the number of documents specified by the rows
parameter.

You can page through your results by specifying, say,
start=20rows=20
then
start=40rows=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=status0/int
   int name=QTime1/int
   lst name=params
 str name=q*:*/str
 str name=rows120/str
   /lst
   /lst
   result name=response numFound=540 start=0
  doc
str name=Labelgreen/str
str name=Labelblue/str
str name=Labelred/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=status0/int
   int name=QTime1/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=Labelgreen/str
str name=Labelblue/str
str name=Labelred/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.