/** {@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)); }
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[] ffreq = ((FieldDocumentPostingList)docContents).getFieldFrequencies(term); for (int i = 0; i < fieldcounts.length; i++) fieldcounts[i] += ffreq[i];