lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: CoreContainer : create new cores reusing/sharing solrconfig.xml and schema.xml
Date Mon, 24 Nov 2014 15:49:10 GMT
I haven't done this myself, but it is defined as a constant in the
CoreDescriptor:
http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/core/CoreDescriptor.html#CORE_CONFIGSET

You could also look at the tests and see whether it is used.

Regards,
   Alex.
Personal: http://www.outerthoughts.com/ and @arafalov
Solr resources and newsletter: http://www.solr-start.com/ and @solrstart
Solr popularizers community: https://www.linkedin.com/groups?gid=6713853


On 24 November 2014 at 10:43, Clemens Wyss DEV <clemensdev@mysign.ch> wrote:
> Thanks fort he quick reply.
> But how do I hand in the configSet to use. I guess through the CoreDescriptor?
>
> -----Urspr√ľngliche Nachricht-----
> Von: Alexandre Rafalovitch [mailto:arafalov@gmail.com]
> Gesendet: Montag, 24. November 2014 16:27
> An: solr-user
> Betreff: Re: CoreContainer : create new cores reusing/sharing solrconfig.xml and schema.xml
>
> Have you tried Configsets:
> https://cwiki.apache.org/confluence/display/solr/Config+Sets ?
>
> Regards,
>    Alex.
> Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter:
http://www.solr-start.com/ and @solrstart Solr popularizers community: https://www.linkedin.com/groups?gid=6713853
>
>
> On 24 November 2014 at 10:14, Clemens Wyss DEV <clemensdev@mysign.ch> wrote:
>> Given the following directory/file structure
>>
>> .../solrhome
>> .../solrhome/solr.xml
>> .../solrhome/config/
>> .../solrhome/config/schema.xml
>> .../solrhome/config/solrconfig.xml
>> .../solrhome/cores
>>
>> How can I programmatically (CoreContainer) create a new core below .../solrhome/cores
that makes use of solrconfig.xml and schema.xml?
>> The new core should use the config files in .../solrhome/config/
>>
>> Thx
>> Clemens

Mime
View raw message