HI Erick:

At the page you have show me, I found some useful methods.
But it seems like not contains method about how to obtain core names,core
paths.

so,I followed the solr index page's method,wrote a jsp page ,like:

CoreContainer
cores=(CoreContainer)request.getAttribute("org.apache.solr.CoreContainer");
then cores.getCores() get core informations.

later I translate infos to json format.

at client side.I use httpClient to request this page,then parse json to Java
Object.

finally i got what i want.

thanks again.

On Mon, Jul 25, 2011 at 9:40 PM, Erick Erickson <erickerick...@gmail.com>wrote:

>
> http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/request/CoreAdminRequest.html
>
> That should get you started.....
>
>
> Best
> Erick
>
> On Tue, Jul 19, 2011 at 11:40 PM, Jiang mingyuan
> <mailtojiangmingy...@gmail.com> wrote:
> > hi all,
> >
> > Our solr server contains two cores:core0,core1,and they both works well.
> >
> > Now I'am trying to find a way to get information about core0 and core1.
> >
> > Can solrj or other api do this?
> >
> >
> > thanks very much.
> >
>

Reply via email to