示例#1
0
        public static IServiceCollection AddEntitySearch(this IServiceCollection services)
        {
            SearchConfiguration.GetSearchConfiguration();

            services.AddSingleton <SearchConfiguration>();

            return(services);
        }
示例#2
0
        public static IServiceCollection SetSupressCharacters(this IServiceCollection services, IList <char> supressCharacters = null)
        {
            SearchConfiguration.GetSearchConfiguration().SupressCharacters = supressCharacters;

            return(services);
        }
示例#3
0
        public static IServiceCollection SetSupressTokens(this IServiceCollection services, IList <string> supressTokens = null)
        {
            SearchConfiguration.GetSearchConfiguration().SupressTokens = supressTokens;

            return(services);
        }
示例#4
0
        public static IServiceCollection SetTokenMaximumSize(this IServiceCollection services, int?tokenMinimumSize = null)
        {
            SearchConfiguration.GetSearchConfiguration().TokenMaximumSize = tokenMinimumSize;

            return(services);
        }