SaaS CMS has officially launched! Learn more now.

Search Commerce products with outlines


Looking at the Lucenebased Mediachase search functionality you can take the current node and add as an outline to which products is included in the search. Is there a way to do anything similar in EPiServer Find? Trying to replicate parts the QuickSilver Search implementation in Find.

Feb 01, 2016 17:02

Using the following Filter statement works on the lowest nodes (like mens shoes) but not in upper levels (like womens):

client.Search<FashionProduct>().Filter(x => x.ParentNodeRelations().MatchContained(c => c.ID, currentContent.ContentLink.ID));

Is there a way to make it work on higher product structures?

Edited, Feb 02, 2016 16:27

The following seems to do the trick

client.Search<FashionProduct>().Filter(x => x.Ancestors().Match(currentContent.ContentLink.ToString()));
Feb 04, 2016 14:03
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.