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 zarni aung <za...@gmail.com> on 2011/06/30 20:32:52 UTC

Core Administration

Hi,

I am researching about core administration using Solr.  My requirement is to
be able to provision/create/delete indexes dynamically.  I have tried it and
it works.  Apparently core admin handler will create a new core by
specifying the instance Directory (required), along with data directory, and
so on.  The issue I'm having is that a separate app that lives on a
different machine need to create these new cores on demand along with
creating new schema.xml and data directories.  The required instance
directory, data directory and others need to be separate from each core.

My first approach is to write a tool that would take additional params that
can code gen the schema config files and so on based on different type of
documents.  ie: Homes, People, etc...

But I need to know if Solr already handles that case.  I wouldn't want to
have to write the tool if Solr already supports creating cores with new
configs on the fly.

Thanks,

Z

Re: Core Administration

Posted by zarni aung <za...@gmail.com>.
I have an idea.  I  believe I can discover the Properties of an object (C#
reflection) and then code gen schema.xml file based on the field type and
other meta data of that type (possibly from database).  After that, I should
be able to ftp the files over to the solr machine.  Then I can invoke core
admin to create the new index on the fly.  My original question would be, is
there a tool that already does what I'm describing?

Z

On Thu, Jun 30, 2011 at 2:32 PM, zarni aung <za...@gmail.com> wrote:

> Hi,
>
> I am researching about core administration using Solr.  My requirement is
> to be able to provision/create/delete indexes dynamically.  I have tried it
> and it works.  Apparently core admin handler will create a new core by
> specifying the instance Directory (required), along with data directory, and
> so on.  The issue I'm having is that a separate app that lives on a
> different machine need to create these new cores on demand along with
> creating new schema.xml and data directories.  The required instance
> directory, data directory and others need to be separate from each core.
>
> My first approach is to write a tool that would take additional params that
> can code gen the schema config files and so on based on different type of
> documents.  ie: Homes, People, etc...
>
> But I need to know if Solr already handles that case.  I wouldn't want to
> have to write the tool if Solr already supports creating cores with new
> configs on the fly.
>
> Thanks,
>
> Z
>

Re: Core Administration

Posted by zarni aung <za...@gmail.com>.
Thank you very much Stefan.  This helps.

Zarni

On Thu, Jun 30, 2011 at 4:10 PM, Stefan Matheis <
matheis.stefan@googlemail.com> wrote:

> Zarni,
>
> Am 30.06.2011 20:32, schrieb zarni aung:
>
>  But I need to know if Solr already handles that case.  I wouldn't want to
>> have to write the tool if Solr already supports creating cores with new
>> configs on the fly.
>>
>
> there isn't. you have to create the directory structure & the related files
> yourself. solr (the AdminCoreHandler) does only "activate" the core for
> usage.
>
> Few Weeks ago, there was a Question about modifying Configuration Files
> from the Browser: http://search.**lucidimagination.com/search/**
> document/ec79172e7613d1a/**modifying_configuration_from_**a_browser<http://search.lucidimagination.com/search/document/ec79172e7613d1a/modifying_configuration_from_a_browser>
>
> Regards
> Stefan
>

Re: Core Administration

Posted by Stefan Matheis <ma...@googlemail.com>.
Zarni,

Am 30.06.2011 20:32, schrieb zarni aung:
> But I need to know if Solr already handles that case.  I wouldn't want to
> have to write the tool if Solr already supports creating cores with new
> configs on the fly.

there isn't. you have to create the directory structure & the related 
files yourself. solr (the AdminCoreHandler) does only "activate" the 
core for usage.

Few Weeks ago, there was a Question about modifying Configuration Files 
from the Browser: 
http://search.lucidimagination.com/search/document/ec79172e7613d1a/modifying_configuration_from_a_browser

Regards
Stefan