sitecore Search Create an outbound filter for the search


Outbound filter can be used to filter the search results.

One of the examples of outbound filter usage is removing items which user doesn't have access to from search results.

Outbound filters are set in the configuration:

 <processor type="Sitecore.ContentSearch.Pipelines.IndexingFilters.ApplyOutboundSecurityFilter, Sitecore.ContentSearch"></processor>

Example of outbound filter implementation:

public class ApplyOutboundIndexWorkflowFilter : OutboundIndexFilterProcessor   
    public override void Process(OutboundIndexFilterArgs args)       
        //You can use args.IsExcluded to remove items from the search results here

More examples and information could be found on