private static void ProcessFile(string fileName, List<Document> list) { Document newDoc = new Document(); newDoc.Title = Path.GetFileName(fileName); newDoc.File = fileName; newDoc.DocID = newDoc.File.GetHashCode(); list.Add(newDoc); }
public DocumentResult(Document doc) { this.docIndex = FactoryDocumentIndex.GetDocumentIndex(); this.lexicon = FactoryLexicon.GetLexicon(); this.DocID = doc.DocID; this.File = doc.File; this.Title = doc.Title; this.WordQuantity = doc.WordQuantity; }
public void Insert(Document e) { throw new NotImplementedException(); }
public void Insert(Document doc) { this.ht[doc.DocID] = doc; this.totalLenghtAccumulator += doc.WordQuantity; }