Package org.apache.solr.common.util.ContentStreamBase

Examples of org.apache.solr.common.util.ContentStreamBase.StringStream


    public StreamQueryRequest(SolrQuery q) {
        super(q, METHOD.POST);
        String[] bodies = q.remove(CommonParams.STREAM_BODY);
        if (bodies != null && bodies.length > 0) {
            String body = StringUtils.join(bodies, " ");
            this.contentStream = new StringStream(body);
        }
    }
View Full Code Here


    public StreamQueryRequest(SolrQuery q) {
        super(q, METHOD.POST);
        String[] bodies = q.remove(CommonParams.STREAM_BODY);
        if (bodies != null && bodies.length > 0) {
            String body = StringUtils.join(bodies, " ");
            this.contentStream = new StringStream(body);
        }
    }
View Full Code Here

  @Override
  public StringStream parse(Object content) {

    JsonNode node = mapper.convertValue(content, JsonNode.class);
    return new StringStream(node.toString());
  }
View Full Code Here

TOP

Related Classes of org.apache.solr.common.util.ContentStreamBase.StringStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.