/** * Add the terms in a DocumentPostingList to the postings in memory. * @param docPostings DocumentPostingList containing the term information for the denoted document. * @param docid Current document Identifier. * @throws IOException if an I/O error occurs. */ public void addTerms(DocumentPostingList docPostings, int docid) throws IOException { for (String term : docPostings.termSet()) add(term, docid, docPostings.getFrequency(term)); }
/** {@inheritDoc} */ public void addTerms(DocumentPostingList docPostings, int docid) throws IOException{ for (String term : docPostings.termSet()) add(term, docid, docPostings.getFrequency(term), ((FieldDocumentPostingList)docPostings).getFieldFrequencies(term)); }
docContents.getFrequency(term))); docContents.getFrequency(term)); if (newPtr) pointers++;
docContents.getFrequency(term)));
MemoryFieldsLexiconEntry le = new MemoryFieldsLexiconEntry(1, docContents.getFrequency(term), ((FieldDocumentPostingList)docContents).getFieldFrequencies(term)); ((MemoryFieldsInvertedIndex) inverted).add(termid, stats.getNumberOfDocuments(), docContents.getFrequency(term), ((FieldDocumentPostingList)docContents).getFieldFrequencies(term));
int tf = docContents.getFrequency(term);