Fix: Sitecore Publishing Service and Solr Indexing

Jatin Prajapati
2 min readJan 4, 2021

--

Problem statement

I’ve been just included in the ongoing project which is near to finish. But there are a lot of items to take care and one of them is the Solr index rebuild after publishing an item through Sitecore Publishing Service.

We have custom search indexes created to drive the search functionalities on the application.

The team has set up Sitecore Publishing Service on STAGING and PRODUCTION environment to make publishing work go in parallel. But, when we implemented and deployed the search-driven components on the STAGING environment, the published items, and set up to be crawled in custom indexes, were not getting indexed and not included in the search results.

Solution

After searching on the internet (Mainly on our favorite Google search), reading some informative articles, I could not get a satisfactory answer to this. In the last, I through to see in Sitecore configurations from the showconfig.aspx page. There I found the following node in the Sitecore.Publishing.Service.Delivery.config file.

Here in the above node, you can see that the sitecore_web_index is added for the event named publishingservice:searchindex:rebuild. There I added my custom index name as shown in the below snippet. Of course, I did it through the patch file but here just for quick reference I’m showing it as added in the Sitecore.Publishing.Service.Delivery.config file.

After putting this change on CM and all CD servers, the index issue got fixed which was observed earlier.

Hope this will help others to quickly fix this issue without wasting time!!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response