Example usage for org.apache.solr.client.solrj.response SolrResponseBase getStatus

List of usage examples for org.apache.solr.client.solrj.response SolrResponseBase getStatus

Introduction

In this page you can find the example usage for org.apache.solr.client.solrj.response SolrResponseBase getStatus.

Prototype

public int getStatus() 

Source Link

Usage

From source file:org.opensextant.matching.DataLoader.java

License:Open Source License

private static void printResponse(SolrResponseBase response) {
    int status = response.getStatus();
    PrintStream out = status == 0 ? System.out : System.err;
    out.println(response.toString());//  w  ww  . j  ava  2s  . c  o m
    out.close();
}