Making use of Sitecore’s Switcher to manage logger contexts

I'm sure you've used Sitecore.Common.Switcher<T> in your Sitecore projects numerous times, for example when disabling all security checks when editing items in code using the SecurityDisabler: using(new SecurityDisabler()){ // Edit Sitecore items } SecurityDisabler indirectly inherits Sitecore.Common.Switcher<T> which allows such behavior. There are other examples such as SiteContextSwitcher or DatabaseSwitcher. The cool thing about this is that it allows … Continue reading Making use of Sitecore’s Switcher to manage logger contexts

Advertisements

Sc101: Solr Cores

I'm sure you're aware that Solr is a search engine that help us search for content quickly. Sitecore 8.2 and below come pre-configured with Lucene.Net, which is also a search engine. Lucene.Net is more basic and has its limitations so more customers request or need a more capable search engine. Sitecore supports Solr, which is based … Continue reading Sc101: Solr Cores

Setting up SXA Search Box with Solr Suggest

SXA is AWESOME! One of the features I personally liked is the built-in search functionality that requires minimal configuring and no coding (for most basic cases). In this blog post I will go through setting up the 'Search Box' component with Suggest functionality (predictive). I'm using Sitecore 9.0.1 with SXA 1.6 and Solr 6.6.2. Configuring … Continue reading Setting up SXA Search Box with Solr Suggest

Organizing Solr’s schema.xml for Sitecore using PowerShell

When setting up your Solr cores for the first time for a new project, several steps have to be done to prepare your schema.xml (or managed-schema). One of them is moving all <field> and <dynamicField> nodes under a new <fields> node and moving all <fieldType> nodes under a new <types> node. This process is very … Continue reading Organizing Solr’s schema.xml for Sitecore using PowerShell

Copying English version content to new language versions – Sitecore

While working on our latest Sitecore project, our client requested that all language versions to be based on the current English version which means copying the current English version fields' content. Some fields or all fields (depending on the page) are then translated to the corresponding language version manually. By default, when creating a new … Continue reading Copying English version content to new language versions – Sitecore