Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 无法在Solr 3.6中添加核心_Apache_Solr - Fatal编程技术网

Apache 无法在Solr 3.6中添加核心

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>

我试图在Solr3.6中添加多个内核,但我无法做到这一点。我在solr.xml文件中编写了以下内容

<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>