lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang mingyuan <mailtojiangmingy...@gmail.com>
Subject Re: how to get solr core information using solrj
Date Thu, 28 Jul 2011 14:07:00 GMT
hi Stefan,


thanks for your advice,i wrote a jsp file to obtain those information.
witch looks 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.


i am not familiar with solr,so i'm not sure their are other good interfaces.

On  http://wiki.apache.org/solr/**CoreAdmin#STATUS<http://wiki.apache.org/solr/CoreAdmin#STATUS>
,
I have not found direct method to get information about core names ,paths
etc.

many thanks for your advice.



On Wed, Jul 20, 2011 at 3:01 PM, Stefan Matheis <
matheis.stefan@googlemail.com> wrote:

> Jiang,
>
> what about http://wiki.apache.org/solr/**CoreAdmin#STATUS<http://wiki.apache.org/solr/CoreAdmin#STATUS>?
>
> Regards
> Stefan
>
> Am 20.07.2011 05:40, schrieb Jiang mingyuan:
>
>  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.
>>
>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message