Ejemplo n.º 1
0
 // 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);
 }
Ejemplo n.º 2
0
 // 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);
 }