Try our conversational search powered by Generative AI!

Filter to exclude files not published on any page

Vote:
 

Hi,

How can I add a filter to this to exclude files that are not published/used on any page using unified search?

Model.ResultsFiles = searchFiles.ApplyBestBets().GetResult();

Or can I exclude it in the FindInitialization file?

/Frode

#185744
Nov 30, 2017 15:49
Vote:
 

Hi Frode,

This blog post is a bit older, but should be pretty applicable to what you're trying to do: https://world.episerver.com/blogs/Henrik-Fransas/Dates/2014/3/Indexing-only-referenced-files-with-EPiServer-Find-75/

/Jake

#185746
Nov 30, 2017 16:23
Vote:
 

Hi,

Thanks, but I've tried that already and didn't get that to work. I found this solution by Eric Herlitz that works great.

http://www.herlitz.nu/2017/01/24/index-only-linked-documents-using-episerver-find/ 

/Frode

#185773
Dec 01, 2017 10:13
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.