SOLR配置文件可以位于父文件夹中吗?

时间:2011-04-13 18:24:04

标签: path solr relative absolute

我已经配置了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>

1 个答案:

答案 0 :(得分:0)

根据Solr wiki

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

  1. $ {instanceDir} / conf / $ {config-file}或
  2. $ {DATADIR} / $ {配置文件中}