Package org.apache.solr.request

Examples of org.apache.solr.request.BinaryResponseWriter


   * become SolrDocuments, DocList becomes SolrDocumentList etc.
   */
  public NamedList<Object> getParsedResponse( SolrQueryRequest req, SolrQueryResponse rsp )
  {
    try {
      BinaryResponseWriter writer = new BinaryResponseWriter();
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      writer.write( bos, req, rsp );
      BinaryResponseParser parser = new BinaryResponseParser();
      return parser.processResponse( new ByteArrayInputStream( bos.toByteArray() ), "UTF-8" );
    }
    catch( Exception ex ) {
      throw new RuntimeException( ex );
View Full Code Here

TOP

Related Classes of org.apache.solr.request.BinaryResponseWriter

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.