示例#1
0
 public ProductSearchService(IElasticSearchService elasticSearchService,
                             ISearchFiltersService <ProductIndexItem> searchFiltersService,
                             IMapper mapper)
 {
     _elasticSearchService = elasticSearchService;
     _searchFiltersService = searchFiltersService;
     _mapper = mapper;
 }
        //private ISearchRefinementHelpers<ProductOfCategoryViewModel, SearchFilterForCategoryViewModel> searchAlgorithms;

        public SearchController(
            ICacheService cacheService,
            IProductsService productsService,
            ISearchFiltersService searchFiltersService,
            ICategoriesService categoriesService,
            ISearchFilterHelpers filterStringHelpers
            //ISearchRefinementHelpers<ProductOfCategoryViewModel, SearchFilterForCategoryViewModel> searchAlgorithms
            )
        {
            this.Cache = cacheService;
            this.productsService = productsService;
            this.searchFiltersService = searchFiltersService;
            this.categoriesService = categoriesService;
            this.filterStringHelpers = filterStringHelpers;
            //this.searchAlgorithms = searchAlgorithms;
        }