Example usage for org.apache.solr.client.solrj.util ClientUtils toContentStreams

List of usage examples for org.apache.solr.client.solrj.util ClientUtils toContentStreams

Introduction

In this page you can find the example usage for org.apache.solr.client.solrj.util ClientUtils toContentStreams.

Prototype

public static Collection<ContentStream> toContentStreams(final String str, final String contentType) 

Source Link

Document

Take a string and make it an iterable ContentStream

Usage

From source file:com.sindicetech.siren.solr.client.solrj.request.SirenUpdateRequest.java

License:Open Source License

@Override
public Collection<ContentStream> getContentStreams() throws IOException {
    return ClientUtils.toContentStreams(jsonDocument, "application/json; charset=UTF-8");
}

From source file:com.tamingtext.tagrecommender.MoreLikeThisRequest.java

License:Apache License

@Override
public Collection<ContentStream> getContentStreams() {
    return ClientUtils.toContentStreams(getContent(), TEXT_PLAIN);
}