public void AddDocumentIndex(int documentId, TermInformation termInformation)
        {
            NumberOfTerms++;
            var document = Postings.GetOrAdd(documentId, new Posting());

            document.AddOffset(termInformation);
            NumberOfDocuments = Postings.Count();
        }
Esempio n. 2
0
 public void AddOffset(TermInformation termInformation)
 {
     NumberOfTerms++;
     TermOffsetList[termInformation.FieldId] = termInformation;
 }