use of org.apache.solr.client.solrj.request.ContentStreamUpdateRequest in project storm by apache.
the class SolrJsonMapper method createtSolrRequest.
private SolrRequest createtSolrRequest(String json) {
final ContentStreamUpdateRequest request = new ContentStreamUpdateRequest(jsonUpdateUrl);
final ContentStream cs = new ContentStreamBase.StringStream(json, CONTENT_TYPE);
request.addContentStream(cs);
if (logger.isDebugEnabled()) {
logger.debug("Request generated with JSON: " + json);
}
return request;
}
Aggregations