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.
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?
The following seems to do the trick
client.Search<FashionProduct>().Filter(x => x.Ancestors().Match(currentContent.ContentLink.ToString()));