Skip to content

Instantly share code, notes, and snippets.

@thaitranet
Created June 7, 2023 05:20
Show Gist options
  • Save thaitranet/ca90a429a699411747a316238f1e86b1 to your computer and use it in GitHub Desktop.
Save thaitranet/ca90a429a699411747a316238f1e86b1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<!--
Purpose: This include file enables and configures the Search feature.
This feature contains a large set of search renderings that enable users to build complex search pages.
To disable this file, change its extension to ".disabled".
-->
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<services>
<register patch:instead="*[@serviceType='Sitecore.XA.Feature.Search.Controllers.SearchController, Sitecore.XA.Feature.Search']" serviceType="Platform.Controllers.XASearchOverrideController, Platform" implementationType="Platform.Controllers.XASearchOverrideController, Platform" lifetime="Transient"/>
</services>
<pipelines>
<initialize>
<processor patch:instead="processor[@type='Sitecore.XA.Feature.Search.Pipelines.Initialize.InitializeRouting, Sitecore.XA.Feature.Search']"
type="Platform.Pipelines.RegisterRoutes, Platform" />
</initialize>
</pipelines>
</sitecore>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment