public ResourceSearchService(ResourceLoader resourceLoader, IResourceSearchBooster booster, IResourceSearchEngineQuery searchEngineQuery, IResourcesQuery resourcesQuery, IFaqsQuery faqsQuery) : base(EventSource, searchEngineQuery, DefaultIndexFolder) { _resourcesQuery = resourcesQuery; _faqsQuery = faqsQuery; var analyzerFactory = new AnalyzerFactory(resourceLoader); _indexer = new Indexer(analyzerFactory.CreateContentAnalyzer(), analyzerFactory.CreateQueryAnalyzer(), booster, resourcesQuery, faqsQuery); }
public Indexer(Analyzer contentAnalyzer, Analyzer queryAnalyzer, IResourceSearchBooster booster, IResourcesQuery resourcesQuery, IFaqsQuery faqsQuery) { _contentAnalyzer = contentAnalyzer; _queryBuilder = new QueryBuilder(queryAnalyzer); _contentHandler = new ContentHandler(booster); _createdTimeHandler = new CreatedTimeContentHandler(booster); _subcategoryHandler = new SubcategoryContentHandler(booster, resourcesQuery, faqsQuery); _itemTypeHandler = new ItemTypeContentHandler(booster); _popularityHandler = new PopularityContentHandler(booster); _handlers = new[] { _itemTypeHandler, _subcategoryHandler, _createdTimeHandler, _popularityHandler }; }
public ContentHandler(IResourceSearchBooster booster) { _booster = booster; }