简体   繁体   English

solr.xml,solrconfig.xml和schema.xml在哪里?

[英]Where are solr.xml, solrconfig.xml and schema.xml located?

I am trying to create a new collection which requires change in these schemas. 我正在尝试创建一个需要更改这些架构的新集合。 I am unable to figure out where they are located exactly. 我无法弄清楚它们的确切位置。 Any help in the direction would be appreciated. 任何方向的帮助将不胜感激。

PS : I don't have admin rights. PS:我没有管理员权限。 I am accessing using solrctl 我正在使用solrctl访问

Cloudera has whole new approach about Solr Configuration (Cloudera Search). Cloudera具有有关Solr配置(Cloudera搜索)的全新方法。

solr.xml, solrconfig.xml and schema.xml are under solr_configs/conf folder (what you have created while adding new collection USING solrctl - probably at /home/solr) solr.xml,solrconfig.xml和schema.xml在solr_configs / conf文件夹下(您在添加新集合时使用solrctl创建的内容-可能位于/ home / solr)

Quote from Cloudera Search Reference: http://www.cloudera.com/content/cloudera/en/documentation/cloudera-search/v1-latest/Cloudera-Search-Installation-Guide/csig_deploy_search_solrcloud.html 引用Cloudera搜索参考的引用: http ://www.cloudera.com/content/cloudera/zh-CN/documentation/cloudera-search/v1-latest/Cloudera-Search-Installation-Guide/csig_deploy_search_solrcloud.html

Configuration files for a collection are managed as part of the instance directory. 集合的配置文件作为实例目录的一部分进行管理。 To generate a skeleton of the instance directory run: 要生成实例目录的框架,请运行:

$ solrctl instancedir --generate $HOME/solr_configs

You can customize it by directly editing the solrconfig.xml and schema.xml files that have been created in $HOME/solr_configs/conf. 您可以通过直接编辑$ HOME / solr_configs / conf中创建的solrconfig.xml和schema.xml文件来自定义它。

These configuration files are compatible with the standard Solr tutorial example documents. 这些配置文件与标准Solr教程示例文档兼容。

Once you are satisfied with the configuration, you can make it available for Solr to use by issuing the following command, which uploads the content of the entire instance directory to ZooKeeper: 对配置满意后,可以通过发出以下命令将其供Solr使用,该命令将整个实例目录的内容上载到ZooKeeper:

$ solrctl instancedir --create collection1 $HOME/solr_configs

You can use the solrctl tool to verify that your instance directory uploaded successfully and is available to ZooKeeper. 您可以使用solrctl工具来验证您的实例目录是否已成功上载并且可用于ZooKeeper。 You can use the solrctl to list the contents of an instance directory as follows: 您可以使用solrctl列出实例目录的内容,如下所示:

$ solrctl instancedir --list

If you had used the earlier --create command to create a collection1, the --list command should return collection1. 如果您使用较早的--create命令创建collection1,则--list命令应返回collection1。

ALSO if you have created a new collection and you want to update configuration you should use 另外,如果您已经创建了一个新集合并且想要更新配置,则应该使用

- solrctl instancedir --update COLLECTION NAME /path/to/local solr_config folder

Maybe my answer is late but it'd help someone about similar questions. 也许我的答案来晚了,但是它会对类似的问题有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM