Community
Participate
Working Groups
Solr supports the client specifying the number of results to return and starting point. This allows a client to paginate search results. We need to enable these fields on the server.
I have enabled pagination on the server side. Client can pass additional fields "rows" to specify the number of documents to return, and "start" to specify the starting offset for results beyond the first page. Example (return 20 results, starting at the 40th result in the list): http://localhost:8080/search/search.html#?rows=20&start=40&q=Search* Commit: http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=a150196a6b694ab0abbb1eed7dcab1e9b640e8c0
(In reply to comment #1) > I have enabled pagination on the server side. Client can pass additional fields > "rows" to specify the number of documents to return, and "start" to specify the > starting offset for results beyond the first page. Example (return 20 results, > starting at the 40th result in the list): > > http://localhost:8080/search/search.html#?rows=20&start=40&q=Search* > > Commit: > > http://git.eclipse.org/c/orion/org.eclipse.orion.server.git/commit/?id=a150196a6b694ab0abbb1eed7dcab1e9b640e8c0 Cool. In fire fox, I even tried ?rows=50&start=0&q=Search* and the performance wasn't bad. That was done within 5 seconds, which covers page loading, search, and 49 rounds of file meta data request. I also tried expanding all the 49 files, which means 49 rounds of file content request and in-file search. Done within 1.5 secs. Very fast. I will do some more tests and tune up a page size.