// Constructor public SearchEngine(string indexPath, string mapPath, string lenPath, int docCount, string collectionPath) { this.indexPath = indexPath; this.mapPath = mapPath; this.lenPath = lenPath; this.docCount = docCount; this.length = new Dictionary <int, double>(docCount); GetVectorLength(); this.localAnalyzer = new LocalAnalyzer(collectionPath); }
// Constructor public SearchEngine(string indexPath, string mapPath, string lenPath, int docCount, string collectionPath) { this.indexPath = indexPath; this.mapPath = mapPath; this.lenPath = lenPath; this.docCount = docCount; this.length = new Dictionary<int, double>(docCount); GetVectorLength(); this.localAnalyzer = new LocalAnalyzer(collectionPath); }