Posts

Deleting solr documents from Solr Admin

Image
  Brief Introduction As we all knows many of the biggest websites on the internet use Solr as their search and navigation engine because it is extremely dependable. It offers centralised configuration, automated failover and recovery, distributed indexing, replication with load-balanced querying, and more. But sometimes while using it we face duplicates issues on to the sites search pages with broken image links which could not be resolved by either re-indexing the content tree/item in master/web databases or publish/unpublish the item/tree. when we query into the solr admin we found there were duplicates present into the respective cores. so below the steps you may follow to delete the respective document directly from the desired index.  Step 1 : Go to the respective solr server which you have configured for you sitecore instance for example http://localhost:8984/solr/#/ Step 2 : Select the respective core(from core selector dropdown) in which you want to delete the duplicate records

Uninstallation of Installed Sitecore Instance Using SIA(Sitecore Install Assistant)

Image
Brief Introduction   There are some cases arises when installation of Sitecore instance on local machine fails or sometimes ruining instance got corrupted in that case if we want to remove current instance properly from machine including SQL databases, Solr indexes as well all dependencies related to particular instance than there is no need to run the each steps manually like removing SQL dB's, Solr indexes etc.(which obvious a hectic one) Sitecore provides a PowerShell script to run this task automatically only we need to configure some attributes and simple run it. below are the steps that needs to be done. Step 1: Go to the File explorer where you have downloaded the Sitecore installation package Step 2: There you can see we have one ps1 file with name of XP0-SingleDeveloper.ps1as shown below Step 3: There are two options either modify existing XP0-SingleDeveloper.ps1 file (not recommended) and run it or rename the file to Uninstall-XP0-SingleDeveloper.ps1 and do changes in it

How to Implement Custom Personalization rule in Sitecore

Image
How to Implement Custom Personalization rule in Sitecore To fulfill business needs sitecore provides many different personalization rules out of the box that can be applied on different components, however there might be cases where we have to write our custom rule or logic's to fulfill client business requirements. Sitecore architecture support this scenario very well. in this blog, we will create a custom rule in which based on query string parameter we will show different content to our website visitors. Use-Case : we would like to show component based upon the value of query string parameter "country" . below is the steps to achieve this. Step-1 : Register the Tag Create a new Custom   Tag for custom rule at this path  /sitecore/system/Settings/Rules/Definitions/Tags . for the reference i have attached the screenshot below Step-2 : Register new Element for rule Create a new Custom element folder and personalization condition at this path 
Image
How to Implement Custom Rendering Resolver for extending the Layout service in Sitecore  JSS Although Sitecore JSS allows you to configure a Rendering Contents Resolver on each rendering, which determines how a rendering and its associated data are serialized. Rendering Contents Resolvers are configured in /sitecore/system/Modules/Layout Service/Rendering Contents Resolvers ,  we might sometimes need some custom data in Layout service which is more relevant to the need of product. so in that case we have to write our custom Rendering Resolver in Sitecore , here we will discuss about that.   By default, Sitecore JSS provides below listed resolver : Datasource Resolver - The default behavior, serializes the rendering's datasource item Datasource Item Children Resolver - Serializes the children of the datasource item Context Item Resolver - Serializes the context item instead of the datasource item Context Item Children Resolver - Serializes the children of the con