GitHub user thammegowda opened a pull request:
https://github.com/apache/lucene-solr/pull/214
Added iterator for solr result pages
This PR provides two Iterator utilities
+ SolrBeanIterator : Iterator for Solrj annotated Beans
+ SolrDocIterator : Iterator for SolrDocuments
These two iterators paginates over solr result set and produces one unified
page which can be iterated from end to end. Optionally, they also accept
`setLimit()` to have a max cap.
I have been copying these two to most of my solr projects. Let me know if
these are good enough to be part of solrj or if there is already an alternative
to achieve the same.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/thammegowda/lucene-solr trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/214.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #214
----
commit aec6ca81ebe116d3270dab5d0ee381177fbea843
Author: Thamme Gowda N <[email protected]>
Date: 2015-12-12T21:19:52Z
Added iterator for solr result pages
SolrBeanIterator
SolrDocIterator
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]