Table of Contents

Interface ICustomizeSearch

Namespace
ToSic.Sxc.Search
Assembly
ToSic.Sxc.dll

This interface marks custom code which views use to customize how search treats data of that view. It's meant for customizing the internal indexer of the platform, not for Google Search.

To use it, create a custom code (.cs) file which implements this interface. You can also inherit from a DynamicCode base class (like Code12) if you need more functionality.

[PublicApi]
public interface ICustomizeSearch

Remarks

History: Released v12.02

Methods

CustomizeSearch(Dictionary<string, List<ISearchItem>>, IModule, DateTime)

Will be called by the search indexer to pre-process the results.

void CustomizeSearch(Dictionary<string, List<ISearchItem>> searchInfos, IModule moduleInfo, DateTime beginDate)

Parameters

searchInfos Dictionary<string, List<ISearchItem>>

Dictionary containing the streams and items in the stream for this search.

moduleInfo IModule

Module information with which you can find out what page it's on etc.

beginDate DateTime

Last time the indexer ran - because the data you will get is only what was modified since.