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
Tag: XM Cloud
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
Sitecore Search API Crawler EXEC_SYNTAX_ERROR
Hi,Today I will discuss about an issue I faced where the formatting of GraphQL query was causing problems when using the Edge endpoint of Sitecore XM Cloud, even though it worked fine on the Preview endpoint.I have configured an API Crawler with request trigger to fetch data from Sitecore using GraphQL query. Below is the … Continue reading Sitecore Search API Crawler EXEC_SYNTAX_ERROR
Resolving ‘Never Publish’ Item Visibility Issue in Sitecore XM Cloud with Custom Content Resolver
In this blog post, we will discuss a common issue which we faced in Sitecore XM Cloud where items marked with the "Never publish" setting appear in listings when their parent folder is used as a data source item. We will walk through the steps to create a custom content resolver to address this problem … Continue reading Resolving ‘Never Publish’ Item Visibility Issue in Sitecore XM Cloud with Custom Content Resolver
Sitecore XM Cloud enhance Device Editor and resolve security error invoked via reflection.
We all know that adding new renderings in the Device Editor always places them at the bottom, which could be inconvenient for items with many renderings. In Sitecore XM cloud, I did a POC using XM Cloud Starter Kit code on my local running on docker to enhance the Device Editor by adding two new … Continue reading Sitecore XM Cloud enhance Device Editor and resolve security error invoked via reflection.