As Sitecore transitions from the traditional XP platform to the modern XM Cloud architecture, developers will notice significant differences in how GraphQL queries are structured and executed. When migrating component queries from XP to XM Cloud, it’s essential to adjust your approach to ensure compatibility. This is primarily because XM Cloud relies on Sitecore Search-based … Continue reading Migrating GraphQL Queries from Sitecore XP to XM Cloud: Key Differences and Best Practices
Spatial Search with Sitecore Search: Filtering by Location
Using Geographic Filters in Sitecore Search Today, I’ll walk you through how I used Geographic filters in Sitecore Search to query results based on a user’s latitude and longitude. Sitecore Search provides two types of geographic filters: geoDistance geoWithin In my case, I implemented the geoDistance filter. Step 1: Create a GEO Attribute First, create … Continue reading Spatial Search with Sitecore Search: Filtering by Location
Extending Sitecore Search API Crawlers for Multi-Language Support
Creating a Sitecore Search API Crawler for Multi-Locale Content Today, I’ll walk through how I created a Sitecore Search API crawler designed to handle multi-locale content, along with a request extractor to dynamically handle locales. The example in the Sitecore Search documentation is great for setting up an API crawler with a trigger, request extractor, … Continue reading Extending Sitecore Search API Crawlers for Multi-Language Support
Handling Non-Default Device Renderings During Migration to Sitecore XM Cloud From Sitecore XP.
When migrating from Sitecore XP to XM Cloud we encountered some issues - particularly when dealing with device-specific renderings. While Sitecore XP supported multiple devices (Mobile, Desktop, Custom devices, etc.) for rendering different layouts, Sitecore XM Cloud only supports the 'Default' device in GraphQL queries and Layout Service responses. This limitation created a migration challenge: … Continue reading Handling Non-Default Device Renderings During Migration to Sitecore XM Cloud From Sitecore XP.
How to Attach Legacy Sitecore Database to XM Cloud Locally And Migrate Content Using CLI
As part of our migration from legacy Sitecore 9.1 to Sitecore XM Cloud I needed to access content from legacy Sitecore 9.1 master database, In this post, I’ll walk you through how I attached the database to my local XM Cloud and migrated the content using Sitecore CLI. This blog post is divided into two … Continue reading How to Attach Legacy Sitecore Database to XM Cloud Locally And Migrate Content Using CLI
Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud
Today, I’d like to share an error I encountered while migrating Sitecore XP 9.1 templates to Sitecore XM Cloud (XMC). After successfully migrating the templates, I attempted to run the Layout Service using GraphQL IDE, but encountered the following error: { "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON" } At first glance, … Continue reading Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud
Simplifying Data Indexing in Sitecore Search with Transformers
Today, I’ll walk you through how to use Transformers in Sitecore Search. Transformers are used to index structured documents such as CSV, XML, and JSON files. Click here for the official documentation from Sitecore.With Transformers, we can manipulate any properties available in the document before they are indexed. This manipulation allows for cleaner and more … Continue reading Simplifying Data Indexing in Sitecore Search with Transformers
Using Search Ingestion to Sync Products from OrderCloud to Sitecore Search
Today, I’ll walk you through the process of integrating product synchronization between Sitecore OrderCloud and Sitecore Search.With Sitecore OrderCloud, we can leverage the Search Ingestion feature to synchronize product data with Sitecore Search. This enables us to create, update, or delete index documents—resulting in a unified and powerful search experience. Step-by-Step Integration Guide1. Set up … Continue reading Using Search Ingestion to Sync Products from OrderCloud to Sitecore Search
Fixing Sitecore Search Web Crawler Errors: Handling Large Payloads
When working with Sitecore Search, encountering errors during crawling is common, especially when dealing with large JSON responses. Recently, I encountered a critical issue where the Sitecore Search web crawler failed due to exceeding the maximum payload size limit of 10MB.. Understanding the Error The error message displayed was: Validation Error: The number of indexed … Continue reading Fixing Sitecore Search Web Crawler Errors: Handling Large Payloads
Fixing Crawling Issues in Sitecore Search: Handling Special Characters in Document IDs
Today, I will describe an issue I faced in SiteCore Search while crawling an URL containing multiple JSON nodes. I created a source of type "API Crawler" to crawl JSON nodes from a specific URL. However, during the crawling process, I encountered the below issue: Some nodes were not crawled due to an error. To … Continue reading Fixing Crawling Issues in Sitecore Search: Handling Special Characters in Document IDs