[
https://issues.apache.org/jira/browse/LUCENE-4052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274140#comment-13274140
]
Robert Muir commented on LUCENE-4052:
-------------------------------------
It is an easy way to iterate over search results (that hides the re-searching
behind
the scenes itself and presents just a simple iterator API).
Some problems before involved using a Hits over a closed reader (now this is
always detected),
and also the iteration triggered re-searches (we can ourselves use searchAfter
behind the scenes
to make this more efficient).
So hits can actually be made pretty efficient and easy.
We should fixup more of the api (this is just a patch to get it compiling), and
maybe change
it to actually iterate over pages or something even easier (e.g. specify docs
per page in the ctor).
Also really this should go in the sandbox :)
> resurrection of Hits
> --------------------
>
> Key: LUCENE-4052
> URL: https://issues.apache.org/jira/browse/LUCENE-4052
> Project: Lucene - Java
> Issue Type: Improvement
> Affects Versions: 4.0
> Reporter: Robert Muir
> Attachments: LUCENE-4052.patch
>
>
> I think we should bring back Hits (easy to use), but with less problems than
> before.
> We should fix LUCENE-3514 and then we can always use searchAfter on this
> thing so
> that it never uses too much RAM. also we can clean up other wierd parts about
> it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]