zoukankan      html  css  js  c++  java
  • Solr入门之(4)配置文件solr.xml


    <?
    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">
        <core name="collection1" instanceDir="." />
      </cores>
    </solr>

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

  • 相关阅读:
    如何利用 iTunes 把 m4a/wav 文件转成 MP3 格式
    The best way to learn a programming language
    琼瑶哀悼丈夫去世
    与“芯片”相关的专业有哪些?
    君子使物,不为物使
    SRID (空间引用识别号, 坐标系)【转】
    编码
    test
    剪贴板神器:Ditto
    写Markdown博客时遇到的一些问题
  • 原文地址:https://www.cnblogs.com/tq03/p/3604522.html
Copyright © 2011-2022 走看看