I've got an XbK site (let's call it Site A) that uses the Azure AI Search integration for XbK library to index some of the page content. I've got a second external non-Kentico site (Site B) with custom UI/functionality that allows users to edit and publish some pages from the XbK site, completely outside of the Kentico admin. Site B connects directly to Site A's Kentico database, and uses the Pages API for updating the page drafts and publishing pages.
When I publish the pages directly in the Kentico admin on Site A, the connected Azure AI Search index updates successfully. However, when publishing the same pages externally on Site B using the Pages API, the Azure AI Search index does not get updated.
Do I need to duplicate the AzureSearchSearchModule (https://github.com/Kentico/xperience-by-kentico-azure-ai-search/blob/main/src/Kentico.Xperience.AzureSearch/AzureSearchSearchModule.cs) in Site B to get this to work? Or is there a way to trigger the event handlers defined in the AzureSearchSearchModule in Site A, when events are triggered via Kentico APIs? Any other solutions?