Skip to content

Instantly share code, notes, and snippets.

@herskinduk
Created November 14, 2014 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herskinduk/89a99902e6e797134635 to your computer and use it in GitHub Desktop.
Save herskinduk/89a99902e6e797134635 to your computer and use it in GitHub Desktop.
Fortis.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<contentSearch>
<indexConfigurations>
<!-- Un-comment out the config for Lucene or SOLR for your project -->
<defaultLuceneIndexConfiguration>
<indexDocumentPropertyMapper>
<!--<patch:attribute name="type">Fortis.Search.LuceneDocumentTypeMapper, Fortis</patch:attribute>-->
<patch:attribute name="type">Sitecore.Mvc.Taskforce.Web.FortisExtension.LuceneDocumentTypeMapper, Sitecore.Mvc.Taskforce.Web</patch:attribute>
<objectFactory>
<!--<patch:attribute name="type">Fortis.Search.DefaultDocumentMapperObjectFactory, Fortis</patch:attribute>-->
<patch:attribute name="type">Sitecore.Mvc.Taskforce.Web.FortisExtension.DefaultDocumentMapperObjectFactory, Sitecore.Mvc.Taskforce.Web</patch:attribute>
</objectFactory>
</indexDocumentPropertyMapper>
</defaultLuceneIndexConfiguration>
<!--<defaultSolrIndexConfiguration>
<indexDocumentPropertyMapper>
<patch:attribute name="type">Fortis.Search.SolrDocumentTypeMapper, Fortis</patch:attribute>
<objectFactory>
<patch:attribute name="type">Fortis.Search.DefaultDocumentMapperObjectFactory, Fortis</patch:attribute>
</objectFactory>
</indexDocumentPropertyMapper>
</defaultSolrIndexConfiguration>-->
</indexConfigurations>
</contentSearch>
<pipelines>
<mvc.getModel>
<processor patch:before="processor[@type='Sitecore.Mvc.Pipelines.Response.GetModel.GetFromItem, Sitecore.Mvc']"
type="Fortis.Mvc.Pipelines.GetModel.GetFromView, Fortis.Mvc"/>
</mvc.getModel>
</pipelines>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment