Sitecore Indexing Strategies for cm & cd.

Sitecore Indexing Strategies for cm & cd.

I recently deployed sitecore xp solution to client on premise servers, got chance to explore more on configuring cm and multiple cds and a solr server serving on all server.

So lets see how I configured for all indexes.

(Note: Sitecore Version: 10.3 & above)

I configured for CM server with the indexing as follows:

for Web index, you may have strategies as below:

   <strategies hint="list:AddStrategy">
              <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/manual" role:require="(ContentManagement and !Indexing) or (ContentDelivery and !Indexing)" />
              <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsyncSingleInstance" role:require="Standalone or (ContentManagement and Indexing) or XMCloud or (ContentDelivery and Indexing)" />
            </strategies>        

I configured for all CD Servers with the indexing as follows:

For Web Index:

            <strategies hint="list:AddStrategy">
              <strategy ref="contentSearch/indexConfigurations/indexUpdateStrategies/onPublishEndAsync" />
            </strategies>        


These strategies will make sure you sitecore content appearing in all cd servers as soon content publising happening.


Difference between onPublishEndAsync and onPublishEndAsyncSingleInstance indexUpdateStrategies in sitecore cms


onPublishEndAsync:-

- Publishes updates asynchronously

- Multiple concurrent publish jobs possible

- Parallel processing of index updates

- Higher performance for large-scale publishing

- Better for distributed environments

onPublishEndAsyncSingleInstance:-

- Ensures single instance processing of index updates

- Prevents potential race conditions

- Guarantees sequential index updates

- More suitable for scenarios requiring strict order of updates

- Reduces risk of simultaneous index modifications

When to choose what?

it can be based on publishing volume, performance requirements and potential for concurrent publishing.

Recommendation: Select strategy based on specific use case and infrastructure configuration.


#sitecore #sitecoreindexing #sitecorecms #solr #sitecoresearch #sitecore #sugranchi







要查看或添加评论,请登录

Prem Murmu的更多文章

  • Sitecore JSS Routing and Page Composition in Next.js Apps

    Sitecore JSS Routing and Page Composition in Next.js Apps

    In Sitcore JSS, Next.js uses a file-system-based router, JSS integrates this system to render pages dynamically based…

  • Sitecore Headless Services

    Sitecore Headless Services

    The Sitecore Headless Services module enables developers to decouple the data application from the rendering…

  • Headless Development with Sitecore (Version 22.x)

    Headless Development with Sitecore (Version 22.x)

    A headless architecture separates the back end (services and APIs) from the front-end application. The front-end…

  • Complete XM Cloud Overview Course

    Complete XM Cloud Overview Course

    I have prepared XM cloud overview course, it will provide you complete overview of the XM cloud platform. Sitecore XM…

  • XM Cloud Terminology

    XM Cloud Terminology

    General concepts and terms used in XM Cloud, the Cloud Portal need to know before start work in XM Cloud projects…

  • Sitecore JSS Next.js folder structure brief introduction

    Sitecore JSS Next.js folder structure brief introduction

    I am going to explain the the JSS Next.js Folder Structure in high level.

社区洞察

其他会员也浏览了