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

Noble Paul edited comment on SOLR-1038 at 3/30/09 3:36 AM:
-----------------------------------------------------------

The add and commit is slightly inconvenient if I wish to do update in multiple 
threads and comit all at once.
So a simple add(Iterator<SolrInputDocument> ) method should be enough. 
commmit/rollback can be done by the user after the add is done

moreover if I wish to do a rollback if something goes wrong in between, I do 
not have the liberty to do so.

      was (Author: noble.paul):
    The add and commit is slightly inconvenient if I wish to do update in 
multiple threads and comit all at once.
So a simple add(Iterator<SolrInputDocument> ) method should be enough. 
commmit/rollback can be done by the user after the add is done
  
> Enhance CommonsHttpSolrServer to add docs in batch
> --------------------------------------------------
>
>                 Key: SOLR-1038
>                 URL: https://issues.apache.org/jira/browse/SOLR-1038
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>            Reporter: Noble Paul
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-1038.patch, SOLR-1038.patch
>
>
> add two methods to ComonsHttpSolrServer to facilitate batch upload of docs
> {code:java}
> public void addAndCommit(Iterator<SolrInputDocument> docIter , SolrParams 
> commitParams)  
> throws SolrServerException, IOException 
> {code}
> This helps users to upload all docs in a single http request

-- 
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