solr - 如何禁用 shardsWhitelist,我收到以下错误

标签 solr lucene sharding solrcloud solr7

因此,当我在 Solr Admin 的 RawQueryParameter 中添加分片时,出现以下错误

**error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
      "msg":"HttpShardHandlerFactory shardsWhitelist not configured but required (in lieu of ZkController 
       and ClusterState) when using the 'shards' parameter. set -Dsolr.disable.shardsWhitelist=true to 
       disable shards whitelist checks",
    "code":403}}**

我想禁用它,但没有发现任何有用的东西 请告诉我如何禁用它

我不想像这样指定分片

<str name="shardsWhitelist">${solr.shardsWhitelist:localhost:8080/solr/test,localhost:8080/solr/test2}</str>

只是想禁用它

最佳答案

您可以在启动 solr 时将其添加为参数,如下所示。

-Dsolr.disable.shardsWhitelist=true

另一种选择是您可以添加为 solr.disable.shardsWhitelist=truesolr.in.sh 文件,

在路径 "...\solr-VERSION\bin" 中找到

关于solr - 如何禁用 shardsWhitelist,我收到以下错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67606577/

相关文章:

lucene - 从 Azure 辅助角色向 Azure Web 角色发送通知 - 最佳实践

postgresql - 在 postgres 中有很多序列有什么问题吗?

java - Solr 未找到名称为 [categoryPath] 的方面

solr - openSSL 的 TYPO3 v7、SOLR 和 CentOS7 问题

windows - 从网络目录轮询

SolrCloud:是否可以在搜索结果中获取文档的分片 ID

lucene - 如何让Lucene匹配查询中的所有单词?

solr - solr查询中的子字符串匹配

mongodb - Docker mongo 分片

mongodb - MongoDB 分片键是否需要唯一?