You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Matthias <ma...@googlemail.com> on 2011/08/02 17:24:02 UTC
CoreContainer from CommonsHttpSolrServer
Hi everybody,
I'm using Solr (with multiple cores) in a Webapp and access the differnt
cores using CommonsHttpSolrServer. As I would like to know, which cores are
configured and what there status is I would like to get an instance of
CoreContainer.
The site http://wiki.apache.org/solr/CoreAdmin tells me how to interact with
the CoreAdminHandler via my browser. But I would like to get the information
provided by the STATUS action in my java application. As CoreContainer
provides appropriate methods I need to get access to such an object.
What's the best way to achieve that.
Thanks in advance.
Matthias
--
View this message in context: http://lucene.472066.n3.nabble.com/CoreContainer-from-CommonsHttpSolrServer-tp3219299p3219299.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: CoreContainer from CommonsHttpSolrServer
Posted by Chris Hostetter <ho...@fucit.org>.
: I'm using Solr (with multiple cores) in a Webapp and access the differnt
: cores using CommonsHttpSolrServer. As I would like to know, which cores are
: configured and what there status is I would like to get an instance of
: CoreContainer.
CoreContainer is an internal API inside of Solr -- so you can't get access
to that when talking to Solr over HTTP
: The site http://wiki.apache.org/solr/CoreAdmin tells me how to interact with
: the CoreAdminHandler via my browser. But I would like to get the information
: provided by the STATUS action in my java application. As CoreContainer
all of those commands are accessable over HTTP from any client, including
SolrJ -- take a look at the CoreAdminRequest class (or you can role your
own using SolrRequest and setting the request params directly)
https://lucene.apache.org/solr/api/org/apache/solr/client/solrj/request/CoreAdminRequest.html
-Hoss