Esempio n. 1
0
        public static IServiceCollection AddEntitySearch(this IServiceCollection services)
        {
            SearchConfiguration.GetSearchConfiguration();

            services.AddSingleton <SearchConfiguration>();

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

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

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

            return(services);
        }