Add Index Settings
Content Search components require that you register Tiles which you are going to use.
Add two index files:
<Solution>.Environments\ALL\App_Config\Include\<Solution>\ContentSearch.Tiles.sitecore_master_index.config
Each Tile must be registered as a separate field with parameters:
fieldName - The Tile name in lowercase with suffix " tile" to prevent collision with content fields.
tileName - The Tile name associated with a content item (case insensitive).
siteContext - The site context required to build correct URLs.ContentSearch.Tiles.sitecore_master_index.config<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <contentSearch> <indexConfigurations> <scoreMasterConfiguration type="Sitecore.ContentSearch.LuceneProvider.LuceneIndexConfiguration, Sitecore.ContentSearch.LuceneProvider"> <fields hint="raw:AddComputedIndexField"> <field fieldName="default tile" tileName="default" siteContext="MySite" returnType="System.String">Score.Custom.Indexing.PreviewField, Score.Custom</field> <field fieldName="search result tile" tileName="Search Result" siteContext="MySite" returnType="System.String">Score.Custom.Indexing.PreviewField, Score.Custom</field> <field fieldName="autocomplete tile" tileName="Autocomplete" siteContext="MySite" returnType="System.String">Score.Custom.Indexing.PreviewField, Score.Custom</field> </fields> </scoreMasterConfiguration> </indexConfigurations> </contentSearch> </sitecore> </configuration>
<Solution>.Environments\ALL\App_Config\Include\<Solution>\ContentSearch.Tiles.sitecore_web_index.config
Each Tile is required to be registered as a separated field with parameters:
fieldName - The Tile name in lowercase with suffix " tile" to prevent collision with content fields.
tileName - The Tile name associated with a content item (case insensitive).
siteContext - The site context required to build correct URLs.ContentSearch.Tiles.sitecore_master_index.config<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <contentSearch> <indexConfigurations> <scoreWebConfiguration type="Sitecore.ContentSearch.LuceneProvider.LuceneIndexConfiguration, Sitecore.ContentSearch.LuceneProvider"> <fields hint="raw:AddComputedIndexField"> <field fieldName="default tile" tileName="default" siteContext="MySite" returnType="System.String">Score.Custom.Indexing.PreviewField, Score.Custom</field> <field fieldName="search result tile" tileName="Search Result" siteContext="MySite" returnType="System.String">Score.Custom.Indexing.PreviewField, Score.Custom</field> <field fieldName="autocomplete tile" tileName="Autocomplete" siteContext="MySite" returnType="System.String">Score.Custom.Indexing.PreviewField, Score.Custom</field> </fields> </scoreWebConfiguration> </indexConfigurations> </contentSearch> </sitecore> </configuration>