public static IServiceCollection AddEntitySearch(this IServiceCollection services) { SearchConfiguration.GetSearchConfiguration(); services.AddSingleton <SearchConfiguration>(); return(services); }
public static IServiceCollection SetSupressCharacters(this IServiceCollection services, IList <char> supressCharacters = null) { SearchConfiguration.GetSearchConfiguration().SupressCharacters = supressCharacters; return(services); }
public static IServiceCollection SetSupressTokens(this IServiceCollection services, IList <string> supressTokens = null) { SearchConfiguration.GetSearchConfiguration().SupressTokens = supressTokens; return(services); }
public static IServiceCollection SetTokenMaximumSize(this IServiceCollection services, int?tokenMinimumSize = null) { SearchConfiguration.GetSearchConfiguration().TokenMaximumSize = tokenMinimumSize; return(services); }