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

Ryan McKinley commented on SOLR-906:
------------------------------------

| the actual error response (http error code, and the body?)
That is / can be encoded in the Throwable implementation no?  As is, it adds 
the same Exception that you get when running the standard one.

| the InputDocument that caused the failure, if there was one

I don't know if there is a good way to do this.  The scope that catches 
exceptions is way outside of the context where we knew what was written.  This 
is just like hitting an error somewhere in the add( List<Doc> ) -- the response 
has no way to know where it broke.  Ideally the error that Solr returns is 
enough information, but the current exception behavior is to barf or not.

| what else?

My thought was we could add any of the specialized parameters in finer grained 
Throwable implementations.  When we have a real 'error' response, this could be 
parsed and passed as an exception.

> Buffered / Streaming SolrServer implementaion
> ---------------------------------------------
>
>                 Key: SOLR-906
>                 URL: https://issues.apache.org/jira/browse/SOLR-906
>             Project: Solr
>          Issue Type: New Feature
>          Components: clients - java
>            Reporter: Ryan McKinley
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 1.4
>
>         Attachments: SOLR-906-StreamingHttpSolrServer.patch, 
> SOLR-906-StreamingHttpSolrServer.patch, 
> SOLR-906-StreamingHttpSolrServer.patch, 
> SOLR-906-StreamingHttpSolrServer.patch, StreamingHttpSolrServer.java
>
>
> While indexing lots of documents, the CommonsHttpSolrServer add( 
> SolrInputDocument ) is less then optimal.  This makes a new request for each 
> document.
> With a "StreamingHttpSolrServer", documents are buffered and then written to 
> a single open Http connection.
> For related discussion see:
> http://www.nabble.com/solr-performance-tt9055437.html#a20833680

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to