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 Satish Talim <sa...@gmail.com> on 2011/08/31 06:25:51 UTC

shareSchema="true" - location of schema.xml?

I have 1000's of cores and to reduce the cost of loading unloading
schema.xml, I have my solr.xml as mentioned here -
http://wiki.apache.org/solr/CoreAdmin
namely:

<solr>
  <cores adminPath="/admin/cores" shareSchema="true">
    ...
  </cores>
</solr>

However, I am not sure where to keep the common schema.xml file? In which
case, do I need the schema.xml in the conf folder of each and every core?

My folder structure is:

     multicore (contains solr.xml)
        |_ core0
             |_ conf
             |    |_ schema.xml
             |    |_ solrconfig.xml
             |    |_ other files
           core1
             |_ conf
             |    |_ schema.xml
             |    |_ solrconfig.xml
             |    |_ other files
             |
           exampledocs (contains 1000's of .csv files and post.jar)

Satish

Re: shareSchema="true" - location of schema.xml?

Posted by rkuris <sw...@gmail.com>.
I have 300 cores so I feel your pain :-)

What we do is use a relative path for the file.  It works if you use
../../common/schema.xml for each core, then just create a common directory
off your solr home and put your schema file there.

I found this works great with solrconfig.xml and all of it's dependencies as
well.

Another choice is to look at the sharedLib parameter, which adds some
directory to your classpath.  I played with this for a little bit and
couldn't get it working, so I went with the relative path solution.

--
View this message in context: http://lucene.472066.n3.nabble.com/shareSchema-true-location-of-schema-xml-tp3297392p3364809.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: shareSchema="true" - location of schema.xml?

Posted by Satish Talim <sa...@gmail.com>.
I am experimenting Solr on Windows, for now.

Satish

2011/8/31 François Schiettecatte <fs...@gmail.com>

> Satish
>
> You don't say which platform you are on but have you tried links (with ln
> on linux/unix) ?
>
> François
>
> On Aug 31, 2011, at 12:25 AM, Satish Talim wrote:
>
> > I have 1000's of cores and to reduce the cost of loading unloading
> > schema.xml, I have my solr.xml as mentioned here -
> > http://wiki.apache.org/solr/CoreAdmin
> > namely:
> >
> > <solr>
> >  <cores adminPath="/admin/cores" shareSchema="true">
> >    ...
> >  </cores>
> > </solr>
> >
> > However, I am not sure where to keep the common schema.xml file? In which
> > case, do I need the schema.xml in the conf folder of each and every core?
> >
> > My folder structure is:
> >
> >     multicore (contains solr.xml)
> >        |_ core0
> >             |_ conf
> >             |    |_ schema.xml
> >             |    |_ solrconfig.xml
> >             |    |_ other files
> >           core1
> >             |_ conf
> >             |    |_ schema.xml
> >             |    |_ solrconfig.xml
> >             |    |_ other files
> >             |
> >           exampledocs (contains 1000's of .csv files and post.jar)
> >
> > Satish
>
>

Re: shareSchema="true" - location of schema.xml?

Posted by Erick Erickson <er...@gmail.com>.
Would it work to just (relative) path the schema
file for your cores with the "schema" parameter?

Best
Erick

2011/8/31 François Schiettecatte <fs...@gmail.com>:
> Satish
>
> You don't say which platform you are on but have you tried links (with ln on linux/unix) ?
>
> François
>
> On Aug 31, 2011, at 12:25 AM, Satish Talim wrote:
>
>> I have 1000's of cores and to reduce the cost of loading unloading
>> schema.xml, I have my solr.xml as mentioned here -
>> http://wiki.apache.org/solr/CoreAdmin
>> namely:
>>
>> <solr>
>>  <cores adminPath="/admin/cores" shareSchema="true">
>>    ...
>>  </cores>
>> </solr>
>>
>> However, I am not sure where to keep the common schema.xml file? In which
>> case, do I need the schema.xml in the conf folder of each and every core?
>>
>> My folder structure is:
>>
>>     multicore (contains solr.xml)
>>        |_ core0
>>             |_ conf
>>             |    |_ schema.xml
>>             |    |_ solrconfig.xml
>>             |    |_ other files
>>           core1
>>             |_ conf
>>             |    |_ schema.xml
>>             |    |_ solrconfig.xml
>>             |    |_ other files
>>             |
>>           exampledocs (contains 1000's of .csv files and post.jar)
>>
>> Satish
>
>

Re: shareSchema="true" - location of schema.xml?

Posted by François Schiettecatte <fs...@gmail.com>.
Satish

You don't say which platform you are on but have you tried links (with ln on linux/unix) ?

François

On Aug 31, 2011, at 12:25 AM, Satish Talim wrote:

> I have 1000's of cores and to reduce the cost of loading unloading
> schema.xml, I have my solr.xml as mentioned here -
> http://wiki.apache.org/solr/CoreAdmin
> namely:
> 
> <solr>
>  <cores adminPath="/admin/cores" shareSchema="true">
>    ...
>  </cores>
> </solr>
> 
> However, I am not sure where to keep the common schema.xml file? In which
> case, do I need the schema.xml in the conf folder of each and every core?
> 
> My folder structure is:
> 
>     multicore (contains solr.xml)
>        |_ core0
>             |_ conf
>             |    |_ schema.xml
>             |    |_ solrconfig.xml
>             |    |_ other files
>           core1
>             |_ conf
>             |    |_ schema.xml
>             |    |_ solrconfig.xml
>             |    |_ other files
>             |
>           exampledocs (contains 1000's of .csv files and post.jar)
> 
> Satish