title: Solr query response in json
body: <p>I am implementing solr facet query. I need to get the response as json. I read that I can't do this using solrj and there is another way to do this by query a HTTPSolrServer. </p>
  
  <p>Here is my code:</p>
  
  <pre><code> SolrServer solr = SolrServerHelper.GetServer();
  
   SolrQuery query = new SolrQuery();
   query.setQuery("*:*");
   query.setFacet(true);
   query.addFacetField("status");
   query.addFacetField("type");
   query.add("wt","json");
  
   QueryResponse res = solr.query(query);
   List&lt;FacetField&gt; results=  res.getFacetFields();
  </code></pre>
  
  <p>I need help execute the query by HTTPSolrServer to get the results as json?</p>