Ok I found the solution: First of all schema is an attribute of the core tag so it becomes: <core name="prod" instanceDir="prod" schema="conf/schema.xml"/>
Also make sure the conf directory in your classpath or relative to the path from where you are launching solr. It is NOT relative to solr.xml path. Marc. On Thu, Feb 10, 2011 at 2:48 PM, Marc SCHNEIDER <marc.schneide...@gmail.com>wrote: > Hi, > > I'm using Solr 1.4.1 and trying to share a schema among two cores. > Here is what I did : > > solr.xml : > <solr persistent="false"> > <cores adminPath="/admin/cores" defaultCoreName="prod" > shareSchema="true"> > <core name="prod" instanceDir="prod"> > <schema>conf/schema.xml</schema> > </core> > <core name="test" instanceDir="test"> > <schema>conf/schema.xml</schema> > </core> > </cores> > </solr> > > Then in my solr.home (where solr.xml lives) I created a conf directory and > put schema.xml inside. > > But it doesn't work and Solr is complaining about missing schema.xml (Can't > find resource 'schema.xml'). > If I put schema.xml into test/conf and prod/conf it does work... > > So what am I missing here? > > Thanks, > Marc. >