diff --git a/src/webapp/src/org/apache/solr/servlet/DirectSolrConnection.java b/src/webapp/src/org/apache/solr/servlet/DirectSolrConnection.java index 3236a727a72..edd7b50e5a5 100644 --- a/src/webapp/src/org/apache/solr/servlet/DirectSolrConnection.java +++ b/src/webapp/src/org/apache/solr/servlet/DirectSolrConnection.java @@ -177,4 +177,13 @@ public class DirectSolrConnection responseWriter.write(out, req, rsp); return out.toString(); } + + /** + * Use this method to close the underlying SolrCore. + * + * @since solr 1.3 + */ + public void close() { + core.close(); + } }