You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2013/07/06 13:01:50 UTC

[jira] [Commented] (SOLR-2112) Solrj should support streaming response

    [ https://issues.apache.org/jira/browse/SOLR-2112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13701317#comment-13701317 ] 

Mikhail Khludnev commented on SOLR-2112:
----------------------------------------

fwiw, 
server side streaming is out-of scope of this issue. Some time ago I did a hack to allow streaming response during collecting results, if somebody need it, feel free to raise an issue. there is the code https://github.com/m-khl/solr-patches/compare/streaming 
                
> Solrj should support streaming response
> ---------------------------------------
>
>                 Key: SOLR-2112
>                 URL: https://issues.apache.org/jira/browse/SOLR-2112
>             Project: Solr
>          Issue Type: New Feature
>          Components: clients - java
>            Reporter: Ryan McKinley
>             Fix For: 4.0-ALPHA
>
>         Attachments: SOLR-2112-StreamingSolrj.patch, SOLR-2112-StreamingSolrj.patch, SOLR-2112-StreamingSolrj.patch
>
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org