Example usage for org.apache.solr.client.solrj.request UpdateRequest add

List of usage examples for org.apache.solr.client.solrj.request UpdateRequest add

Introduction

In this page you can find the example usage for org.apache.solr.client.solrj.request UpdateRequest add.

Prototype

public UpdateRequest add(final SolrInputDocument doc, Integer commitWithin) 

Source Link

Document

Add a SolrInputDocument to this request

Usage

From source file:org.vroyer.hive.solr.SolrTable.java

License:Open Source License

private void putDocWithoutCheck(Collection<SolrInputDocument> docs) throws IOException, SolrServerException {
    UpdateRequest request = new UpdateRequest();
    for (SolrInputDocument doc : docs) {
        request.add(doc, false);
    }//from  ww w .jav a 2 s  .  c o  m
    server.request(request);
}