Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
If you type .ToString() in your query, it will actually look for a field in the index named "ToString", which it won't find. Instead, try
(a => a.ID, content.ContentLink.ID))
Hi,
I have a product that I've added to a category and then linked to another one. When querying the first category the product is found, but not when querying on the second.
When looking at the data stored in Find I see:
And I try to query this by using the following C#:
this.SearchManager.Search().Filter(x => x.ParentNodeRelations().MatchContained(a => a.ToString(), content.ContentLink.ToString()))
The ID$$number in bold are the ID's of the original and linked categories. Unfortunatly this doesn't seem to work. The search results are empty. The COmmerce manager does display the product on both categories however.
Does anyone have an alternative solution or experience with querying linked products?
EPiServer.Find version 12.3.0 and EPiServer.Find.Commerce 9.7.0
Thanks!
/Mark