Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2112

Solrj should support streaming response

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • clients - java
    • None

    Description

      The solrj API should optionally support streaming documents.

      Rather then putting all results into a SolrDocumentList, sorlj should be able to call a callback function after each document is parsed. This would allow someone to call query.setRows( Integer.MAX_INT ) and get each result to the client without loading them all into memory.

      For starters, I think the important things to stream are SolrDocuments, but down the road, this could also stream other things (consider reading all terms from the index)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ryantxu Ryan McKinley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment