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
Web Solr 4新样式Solr.xml-如何配置对核心管理页面的访问?_Web_Solr_Admin - Fatal编程技术网

Web Solr 4新样式Solr.xml-如何配置对核心管理页面的访问?

Web Solr 4新样式Solr.xml-如何配置对核心管理页面的访问?,web,solr,admin,Web,Solr,Admin,在solr中可以找到这句话: 要启用动态核心配置,请确保在solr.xml中设置了adminPath属性。如果缺少此属性,则CoreAdminHandler将不可用 在旧式solr.xml中,此属性在cores元素中设置: cores adminPath=“/admin/cores” 在新的(发现)样式中solr.xml(从solr 4.4开始提供,从第五版开始强制提供),没有要设置的核心元素,也没有关于adminPath属性的任何概念。因此,如果要检查localhost:8983/solr,则

在solr中可以找到这句话:

要启用动态核心配置,请确保在solr.xml中设置了adminPath属性。如果缺少此属性,则CoreAdminHandler将不可用

在旧式solr.xml中,此属性在cores元素中设置:

cores adminPath=“/admin/cores”

在新的(发现)样式中solr.xml(从solr 4.4开始提供,从第五版开始强制提供),没有要设置的核心元素,也没有关于adminPath属性的任何概念。因此,如果要检查localhost:8983/solr,则会出现以下错误:

NetworkError: 404 Not Found - http://localhost:8983/solr/admin/cores?wt=json&indexInfo=false
所有这些是否意味着在4.4+solr中无法通过HTTP进行动态内核处理,或者我没有在configs中设置某些内容

提前谢谢

编辑solr.xml


${adminHandler:org.apache.solr.handler.admin.CoreAdminHandler}
${coreLoadThreads:3}
${coreRootDirectory:@SOLR.CORES.DIRECTORY@}
${managementPath:}
${sharedLib:}
${shareSchema:false}
${DistributdTimeout:1000000}
${DistributUpdate超时:1000000}
${leaderVoteWait:1000000}
${host:}
${hostContext:solr}
${jetty.port:8983}
${genericCoreNodeNames:true}
${loggingClass:}
${loggingEnabled:}
${loggingSize:1000000}
${loggingThreshold:100000}

您愿意分享您的solr.xml吗?一个更新:我测试了一些示例(多核,solr带有新样式的solr.xml),它们都显示在管理页面中。我用maven来启动solr。对于旧样式,它工作得很好,但对于新样式,尽管我遵循了文档中描述的所有配置修改,管理页面仍然失败。我会进一步调查的。但我认为结束这个问题是公平的,因为它过于具体到特定的solr发布方式。。。