Re: Pagination with solr json data

2009-09-10 Thread Jay Hill
All you have to do is use the "start" and "rows" parameters to get the results you want. For example, the query for the first page of results might look like this, ?q=solr&start=0&rows=10 (other params omitted). So you'll start at the beginning (0) and get 10 results. They next page would be ?q=sol

Re: Pagination with Solr

2008-11-23 Thread lupiss
ok! gracias ryguasu por tu respuesta, mira que ahora que recuerdo si hay un setStart y setRows trataré con eso y espero poder terminar mi proyecto, 1000 gracias =) -- View this message in context: http://www.nabble.com/Pagination-with-Solr-tp13847908p20650529.html Sent from the Solr - User mail

Re: Pagination with Solr

2008-11-21 Thread Chris Harris
Yo no suelo usar solrj, pero creo que quiere investigar SolrQuery.setStart() y SolrQuery.setRows(). Creo que el primero es para indicar el numero del primero resultado que quere obtener y el segundo es para indicar cuantos resultados quiere obtener. Si quere todos los resultados, probablemente va a

Re: Pagination with Solr

2008-11-21 Thread lupiss
Hola! soy nueva en solr, lo estoy usando para mi proyecto de residencias, el problema que tengo es similar al que dice david, necesito enviar todos los resultados de cierta consulta al cliente, sin embargo siempre puedo obtener solamente 10, los diez primeros, y yo necesito obtener todos, yo estoy

Re: Pagination with Solr

2007-11-20 Thread Chris Hostetter
: What I'm trying is to parse the response for "numFound:" : and if this number is greater than the "rows" parameter, I send another : search request to Solr with a new "start" parameter. Is there a better : way to do this? Specifically, is there another way to obtain the : "numFound" rather

Re: Pagination with Solr

2007-11-19 Thread climbingrose
Hi David, Do you use one of Solr client available http://wiki.apache.org/solr/IntegratingSolr? These clients should probably have done all the XML parsing jobs for you. I speak from Solrj experience. IMO, your approach is probably most commonly used when it comes to pagination. Solr caching mecha