Thursday, 18 February 2021

How to view Sitecore content delivery showconfig.aspx

All Sitecore configuration get compiled and consolidate in showconfig.aspx file. And this config is the best way to verify default or custom configuration using

https://sc101.cm/sitecore/admin/showconfig.aspx

But recently we were facing configuration issue on CD server since there were no default way to verify showconfig.aspx on content delivery server.


Just to hack this and look showconfig.aspx for content delivery server please follow below steps:


1. Download config click here and save to your instance path wwwroot/sc101.cd

2. From Talend API Tester/Postman, put below input to get output(CD server showconfig.aspx as response) as below screenshot


sitecore-content-delivery-showconfig





Method Type: GET

URL: https://YourInstanceName/sitecorecontentdeliveryshowconfig.aspx

Header keys apikey: 464799ae52214c80b7fc81408f8efbe0




Now check your output. Hope this help.

Wednesday, 17 February 2021

How to create sitecore custom index ?

With Sitecore, If there are lots of data on the instance where search needed, then Sitecore default index will not be good because it will be time and memory consuming.

In that case - creating custom index will be better approach which contains only searched items.


Let's start with creating solr custom index


Go to your solr installed location by copying sitecore_web_index and rename with sitecore_custom_index [<instancename>_web_index - so don't confused with sitecore]



once copied, then open core.properties and update name property under this directory as below screenshot



after above changes, restart solr service.

Now go to path \App_Config\Sitecore\ContentSearch and copy Sitecore.ContentSearch.Solr.Index.Web.config and rename with Sitecore.ContentSearch.Solr.Index.Custom.onfig as below


once file created open update settings for 
indexname, rootpath, which items wanted to include and exclude in index. as below



Let me know if feel any issue or feedback.

Tuesday, 16 February 2021

Could not find add method: AddPrefetch (type: System.String)

 Issue:

After the initial unicorn setup with Sitecore instance, there may be a chance to get below issue

Could not find add method: AddPrefetch (type: System.String)

and there is no more information into log files. 



Fix:
To resolve this issue, 
ensure ranbow.*.dll, unicorn.*.dll, configy.dll and Kamsar.WebConsole.dll properly deployed in wwwroot/instancename/bin directory.