Try our conversational search powered by Generative AI!

Search Commerce products with outlines

Vote:
 

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.

#143817
Feb 01, 2016 17:02
Vote:
 

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?

#143869
Edited, Feb 02, 2016 16:27
Vote:
 

The following seems to do the trick

client.Search<FashionProduct>().Filter(x => x.Ancestors().Match(currentContent.ContentLink.ToString()));
#144018
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.