List of usage examples for org.apache.solr.client.solrj.util ClientUtils toContentStreams
public static Collection<ContentStream> toContentStreams(final String str, final String contentType)
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); }