首页 > 其他 > 详细

Solr入门之(4)配置文件solr.xml

时间:2014-03-18 12:31:00      阅读:443      评论:0      收藏:0      [点我收藏+]
bubuko.com,布布扣

<?
xml version="1.0" encoding="UTF-8" ?> <!-- This is an example of a simple "solr.xml" file for configuring one or more Solr Cores, as well as allowing Cores to be added, removed, and reloaded via HTTP requests. More information about options available in this configuration file, and Solr Core administration can be found online: http://wiki.apache.org/solr/CoreAdmin --> <!-- All (relative) paths are relative to the Solr Home Directory persistent: Save changes made via the API to this file //意思为是否将注册的实例的配置进行持久化动态注册一个实例就会到这里添加一个solrCore元素节点 sharedLib: path to a lib directory that will be shared across all cores --> <solr persistent="true"> <!-- by default, this is 50 @ WARN <logging enabled="true"> <watcher size="100" threshold="INFO" /> </logging> --> <!-- adminPath: RequestHandler path to manage cores. If ‘null‘ (or absent), cores will not be manageable via request handler defaultCoreName: 可选属性,用于在solr客户端界面显示选中。//如果这里没有写defaultCoreName的话就会显示所有的core实例子在开始的管理界面  在标签cores中,所有位于defaultCoreName后面的属性都是在SolrCloud模式时用到。 关于SolrCloud的更多信息:http://wiki.apache.org/solr/SolrCloud --> <cores adminPath="/admin/cores" defaultCoreName="collection1" host="${host:}" hostPort="${jetty.port:8983}" hostContext="${hostContext:solr}" zkClientTimeout="${zkClientTimeout:15000}"> <core name="collection1" instanceDir="collection1" /> <core name="collection2" instanceDir="collection2" /> </cores> </solr>
bubuko.com,布布扣

该文件位于索引库的根目录下,用于定义索引库核心。

Solr入门之(4)配置文件solr.xml,布布扣,bubuko.com

Solr入门之(4)配置文件solr.xml

原文:http://www.cnblogs.com/tq03/p/3604522.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!