Sitecore 8.2,将 ComputedIndexField 添加到 Solr 配置
Sitecore 8.2, Adding a ComputedIndexField to Solr configuration
我需要将 ComputedIndexField 添加到我的 Solr 配置中
通过创建一个包含以下内容的配置补丁来做到这一点
<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
问题:
我的自定义配置的命名使其在尝试修补的节点之前加载。我通过更改名称来修复它,以便它们在节点之后加载。
我需要将 ComputedIndexField 添加到我的 Solr 配置中 通过创建一个包含以下内容的配置补丁来做到这一点
<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
问题: 我的自定义配置的命名使其在尝试修补的节点之前加载。我通过更改名称来修复它,以便它们在节点之后加载。