Sitecore 8.2,将ComputedIndexField添加到Solr配置

时间:2018-01-22 00:42:56

标签: c# solr sitecore sitecore8

我需要在Solr配置中添加ComputedIndexField 通过创建包含以下

的配置补丁来完成此操作
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <contentSearch>
      <indexConfigurations>
        <defaultSolrIndexConfiguration>          
          <fields hint="raw:AddComputedIndexField">
            <field fieldName="SomeFieldName">
              Type, Dll
            </field>
          </fields>         
        </defaultSolrIndexConfiguration>
      </indexConfigurations>
    </contentSearch>
  </sitecore>
</configuration>

但我一直收到错误。即使这是文档建议的格式。

Could not find property 'fieldMap' on object of type: System.String

1 个答案:

答案 0 :(得分:2)

问题: 我的自定义配置的命名是在它尝试修补的节点之前加载它。我通过更改名称来修复它,以便它们在节点之后加载。