[ 
https://issues.apache.org/jira/browse/LUCENE-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir updated LUCENE-2215:
--------------------------------

    Attachment: LUCENE-2215.patch

I think for this issue, we should just add IndexSearcher.pagedSearch() methods 
for paging, passing in the bottom result of the previous page (ScoreDoc 
lastBottom).

Note for the first page of results, this means you pass in null for lastBottom 
and its doing the same thing as search(), so even if you choose to use this 
method your 'page 1 results' will be just as fast as IndexSearcher.search()

Also, its easy to make a ScoreDoc from the int+float so apps that want to keep 
this state can probably do so easily (and maybe they benchmark and decide its 
only worthwhile to cutover to this once you hit page 3, or 4, or whatever).

I also added a few optimizations to the previous code: specialized 
InOrder/OutOfOrder, subtract docBase from the bottom's doc in setNextReader to 
remove an add, etc.

I didn't add the methods that take sort, but I think we could do this in a 
separate issue.

> paging collector
> ----------------
>
>                 Key: LUCENE-2215
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2215
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: core/search
>    Affects Versions: 2.4, 3.0
>            Reporter: Adam Heinz
>            Assignee: Grant Ingersoll
>            Priority: Minor
>         Attachments: IterablePaging.java, LUCENE-2215.patch, 
> LUCENE-2215.patch, PagingCollector.java, TestingPagingCollector.java
>
>
> http://issues.apache.org/jira/browse/LUCENE-2127?focusedCommentId=12796898&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_12796898
> Somebody assign this to Aaron McCurry and we'll see if we can get enough 
> votes on this issue to convince him to upload his patch.  :)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to