Take the community feedback survey now.
AI OnAI Off
Take the community feedback survey now.
For anyone who had the similiar issues, I finally got solution (Note: you need to upgrade to EPi.Find.Commerce 9.5.2+).
protected override void IndexContentsIfNeeded(IEnumerable<ContentReference> contentLinks,
IDictionary<Type, bool> cachedReindexContentOnEventForType,
Func<bool> isReindexingContentOnUpdates)
{
var contents = _contentRepository.GetItems(contentLinks, CultureInfo.InvariantCulture).ToList();
var parentContentLinks = new List<ContentReference>();
foreach (var parents in contents.OfType<VariationContent>().Select(content => _contentRepository
.GetItems(content.GetParentProducts(_relationRepository), CultureInfo.InvariantCulture).Select(c => c.ContentLink).ToList()))
{
parentContentLinks.AddRange(parents);
}
IndexContentsIfNeeded(parentContentLinks, GetIndexContentAction());
}
I tried to follow the documentation from http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Commerce/9/Search/find-integration/indexing-variations-in-a-product-document/
But it seems quite out of date, as IndexContentsIfNeeded is no longer makred as virtual.
Can anyone provide me some sample pls?
Thanks in advance