Solr
  1. Solr
  2. SOLR-2112

Solrj should support streaming response

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: clients - java
    • Labels:
      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)

      1. SOLR-2112-StreamingSolrj.patch
        17 kB
        Ryan McKinley
      2. SOLR-2112-StreamingSolrj.patch
        17 kB
        Ryan McKinley
      3. SOLR-2112-StreamingSolrj.patch
        12 kB
        Ryan McKinley

        Activity

        Ryan McKinley created issue -
        Ryan McKinley made changes -
        Field Original Value New Value
        Attachment SOLR-2112-StreamingSolrj.patch [ 12454132 ]
        Ryan McKinley made changes -
        Attachment SOLR-2112-StreamingSolrj.patch [ 12454135 ]
        Ryan McKinley made changes -
        Summary Solr should support streaming response Solrj should support streaming response
        Ryan McKinley made changes -
        Attachment SOLR-2112-StreamingSolrj.patch [ 12454480 ]
        Ryan McKinley made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Ryan McKinley
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development