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

            services.AddSingleton <SearchConfiguration>();

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

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

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

            return(services);
        }