【问题标题】:where to find schema.xml file for solr 5在哪里可以找到 solr 5 的 schema.xml 文件
【发布时间】:2017-05-21 16:44:36
【问题描述】:

在哪里可以找到 solr 5 的 schema.xml 文件, 或者应该手动创建, 我应该为每个核心创建 schema.xml 还是为每个示例创建 schema.xml?

【问题讨论】:

  • 你是在云模式还是独立模式下运行?
  • 我在云模式下运行,

标签: xml solr schema solr5


【解决方案1】:

在云模式下,每个集合都有一个架构。此架构不会自动添加。您无需自己从头开始创建文件。您可以在example 目录中找到一个现成的配置集,然后您可以修改它以供自己使用。

在云模式下,您的所有配置文件都存储在 zookeeper 上。您可以使用 solr 安装提供的 zkcli.sh 脚本连接到它。对于 6.x,您可以在 ${SOLR_HOME}/server/scripts/cloud-scripts/zkcli.sh

下找到它

上传架构集:

server/scripts/cloud-scripts/zkcli.sh -z localhost:9983 -cmd upconfig -confdir example/files/conf -confname collection1

创建一个新集合然后检索文件:

server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:9983 -cmd get /configs/<your_collection_name>/managed-schema

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-24
    • 2015-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多