Skip to main content

Posts

Unknown connection string. Name: '$(1)' – Sitecore 10.1 Unicorn Error

Unknown connection string. Name: '$(1)' – Sitecore 10.1 Unicorn Error If you are facing issue of “Unknown connection string. Name: '$(1)'” in Sitecore 10.1 then you can resolve this issue by changing in this config file “Unicorn.DataProvider.config”. <databases> <database id="master"> <dataProviders> <dataProvider ref="dataProviders/main"> <patch:attribute name="ref">dataProviders/unicorn</patch:attribute> </dataProvider> </dataProviders> </database> <database id="core"> <dataProviders> <dataProvider ref="dataProviders/main"> <patch:attribute name="ref">dataProviders/unicorn</patch:attribute> </dataProvider> </dataProviders> </database> </databases> With this <d

Unexpected error processing reply from import status service: TypeError: Cannot read property 'forEach' of undefined

Error : “Unexpected error processing reply from import status service: TypeError: Cannot read property 'forEach' of undefined” Reason : Incompatibility of a version of JSS with Sitecore version. Sitecore JavaScript Services modules compatibility with Sitecore XP Solution : Create a JSS app using release/VersionX.X.X, Like if you are using Sitecore 9.3 then use the below command. jss create firstjssproject react --branch release/13.0.0 OR jss create firstjssproject react --b release/13.0.0

Sitecore Solr Auto Suggester on Multiple Field

Sitecore Solr Auto Suggester on Multiple Field  In the last blog , we have created Solr auto suggester functionality on a single field. Now in this blog, we are going to discuss how we can display results in suggest component on basis of multiple fields value, suppose you have one field Title and another is a Tag and now when user search any word it will search result on both Title and Tag fields. To do this, add multiple dictionaries like below for contentSuggester and tagSuggester field. <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">contentSuggester</str> <str name="lookupImpl">AnalyzingInfixLookupFactory</str> <str name="dictionaryImpl">DocumentDictionaryFactory</str> <str name="field">title_t</str> <str name="contextField">_template</str>

Solr Auto Suggester With Sitecore

Solr Auto Suggester With Sitecore What is a Solr Suggester? The Solr suggester component provides automatic suggestions to users, just like Google provides suggestions. Solr has a suggester component which is called SuggestComponent. More detail is available here Configuration the SuggesterComponent Navigate to this location “SolrFolder\server\solr\configsets\INDEXNAME \conf” and open “solrconfig.xml”. Search below comment in “solrconfig.xml” file. <!-- SearchHandler http://wiki.apache.org/solr/SearchHandler For processing Search Queries, the primary Request Handler provided with Solr is "SearchHandler" It delegates to a sequent of SearchComponents (see below) and supports distributed queries across multiple shards --> and paste the below code: <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">contentSu

Setup Sitecore JSS application

Setup Sitecore JSS application Before starting to create JSS application, we need to understand what is a Sitecore JSS. What is a JSS Sitecore JavaScript Services (JSS) is a complete SDK for JavaScript developers that enables you to build full-fledged solutions using Sitecore and modern JavaScript UI libraries and frameworks. Sitecore JSS support Angular, React and Vue JavaScript framework. How to create a JSS application? Firstly, to develop a JSS application, Node needs to be installed into your system. Install the JSS Command Line Application CLI makes it easy to create a new project, scaffold components, deployment of your JSS application, etc. To installed CLI globally, run below command in the command prompt: npm install -g @sitecore-jss/sitecore-jss-cli Create a JSS application To create a JSS application, need to follow the below steps: Create a folder with any project name In project folder, run jss create <your-app-name>