【问题标题】:Can SOLR configuration files be located in parent folders?SOLR 配置文件可以位于父文件夹中吗?
【发布时间】:2011-08-04 22:56:29
【问题描述】:

我已经配置了 SOLR 的 QueryElevation searchComponent,如下所述: http://wiki.apache.org/solr/SchemaXml#The_Unique_Key_Field

但是,我想从默认文件夹上方的几个文件夹中加载 elevate.xml 文件。

我无法让它工作...以下所有都会产生错误:

<str name="config-file">../../elevate.xml</str>
<str name="config-file">..\..\elevate.xml</str>
<str name="config-file">c:/elevate.xml</str>
<str name="config-file">c:\elevate.xml</str>

【问题讨论】:

    标签: solr path relative-path absolute-path


    【解决方案1】:

    根据Solr wiki

    定义查询提升的文件的路径。该文件必须存在于:

    1. ${instanceDir}/conf/${config-file},或
    2. ${dataDir}/${config-file}

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-29
      • 1970-01-01
      • 2023-02-23
      • 1970-01-01
      相关资源
      最近更新 更多