Solr
  1. Solr
  2. SOLR-1038

Enhance CommonsHttpSolrServer to add docs in batch

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: clients - java
    • Labels:
      None

      Description

      add two methods to ComonsHttpSolrServer to facilitate batch upload of docs

      public void addAndCommit(Iterator<SolrInputDocument> docIter , SolrParams commitParams)  
      throws SolrServerException, IOException 
      

      This helps users to upload all docs in a single http request

      1. SOLR-1038.patch
        3 kB
        Noble Paul
      2. SOLR-1038.patch
        2 kB
        Noble Paul
      3. SOLR-1038.patch
        13 kB
        Noble Paul
      4. SOLR-1038.patch
        7 kB
        Noble Paul

        Activity

        Noble Paul created issue -
        Noble Paul made changes -
        Field Original Value New Value
        Component/s clients - java [ 12311580 ]
        Component/s clients - C# [ 12311816 ]
        Fix Version/s 1.5 [ 12313566 ]
        Noble Paul made changes -
        Attachment SOLR-1038.patch [ 12401805 ]
        Noble Paul made changes -
        Fix Version/s 1.4 [ 12313351 ]
        Fix Version/s 1.5 [ 12313566 ]
        Noble Paul made changes -
        Attachment SOLR-1038.patch [ 12402456 ]
        Shalin Shekhar Mangar made changes -
        Assignee Shalin Shekhar Mangar [ shalinmangar ]
        Noble Paul made changes -
        Description add two methods to ComonsHttpSolrServer to facilitate batch upload of docs
        {code:java}
        public void addAndCommit(Iterator<SolrInputDocument> docIter , boolean async, Properties commitParams)
        throws SolrServerException, IOException

        public void addAndCommit(Iterator<Object> beanIter , boolean async , Properties commitParams)
        throws SolrServerException, IOException
        {code}

        This helps users to upload all docs in a single http request
        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
        Shalin Shekhar Mangar made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Noble Paul made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Noble Paul made changes -
        Attachment SOLR-1038.patch [ 12404119 ]
        Shalin Shekhar Mangar made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Noble Paul made changes -
        Attachment SOLR-1038.patch [ 12404629 ]
        Grant Ingersoll made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Noble Paul
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development