Skip to content

Instantly share code, notes, and snippets.

@soen
Last active August 22, 2016 17:55
Show Gist options
  • Save soen/0af312a232cf670d61159c5bafd60d89 to your computer and use it in GitHub Desktop.
Save soen/0af312a232cf670d61159c5bafd60d89 to your computer and use it in GitHub Desktop.
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<contentSearch>
<configuration>
<DefaultIndexConfiguration>
<fields hint="raw:AddComputedIndexField">
<field fieldName="myCustomComputedIndexField" returnType="string">
<!-- Fully qualified assembly path to the class -->
YourAssembly.ComputedFields.MyComputedIndexField,YourAssembly
</field>
</fields>
</DefaultIndexConfiguration>
</configuration>
</contentSearch>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment