Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362827 - [search] Support pagination of search results
Summary: [search] Support pagination of search results
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Server (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 0.4 M1   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 362215 363629
  Show dependency tree
 
Reported: 2011-11-03 14:19 EDT by John Arthorne CLA
Modified: 2011-11-14 13:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-11-03 14:19:15 EDT
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.
Comment 1 John Arthorne CLA 2011-11-03 16:46:03 EDT
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
Comment 2 libing wang CLA 2011-11-03 17:06:43 EDT
(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.