Apache 无法在Solr 3.6中添加核心
我试图在Solr3.6中添加多个内核,但我无法做到这一点。我在solr.xml文件中编写了以下内容Apache 无法在Solr 3.6中添加核心,apache,solr,Apache,Solr,我试图在Solr3.6中添加多个内核,但我无法做到这一点。我在solr.xml文件中编写了以下内容 <solr persistent="true" sharedLib="lib"> <cores adminPath="/admin/cores" defaultCoreName="collection1"> <core name="collection1" instanceDir="." /> </cores>
<solr persistent="true" sharedLib="lib">
<cores adminPath="/admin/cores" defaultCoreName="collection1">
<core name="collection1" instanceDir="." />
</cores>
<core name="core1" instanceDir="./core1">
<property name="dataDir" value="./core1/data" />
</core>
</solr>
core1是我要创建的新core,当我尝试访问localhost:8983/solr/core1/admin时,我将默认core的config文件夹复制到core1中。我收到404错误。新core应在cores标记中定义:-
<solr persistent="true" sharedLib="lib">
<cores adminPath="/admin/cores" defaultCoreName="collection1">
<core name="collection1" instanceDir="." />
<core name="core1" instanceDir="./core1">
<property name="dataDir" value="./core1/data" />
</core>
</cores>
</solr>