public SearchEngine(SearchEngineConfig config) { mConfig = config; mQueryParser = new SimpleQueryParser(new QueryParserConfig { TextSegmenter = config.TextSegmenter, }); mRetriever = new InexactTopKRetriever(new RetrieverConfig { PostingListStore = config.PostingListStore, UrlFileStore = config.UrlFileStore, InvertedIndexStore = config.InvertedIndexStore, }, ResultSize); var rankerConfig = new RankerConfig { PostingListStore = config.PostingListStore, UrlFileStore = config.UrlFileStore, InvertedIndexStore = config.InvertedIndexStore, }; mRanker = new IntegratedRanker(rankerConfig); mProRanker = new QueryTermProximityRanker(rankerConfig); mLogger = new RuntimeLogger(Path.Combine(config.LogDirectory, "SearchEngine.Log"), true); }
public IntegratedRanker(RankerConfig config) { mRankers = new List <IRanker> { new VectorSpaceModelRanker.VectorSpaceModelRanker(config), new DomainDepthRanker.DomainDepthRanker(config), }; }
public VectorSpaceModelRanker(RankerConfig config) { mConfig = config; }
public QueryTermProximityRanker(RankerConfig config) { mConfig = config; }
public DomainDepthRanker(RankerConfig config) { mConfig = config; }