@Override public void setTerm(String term) { super.setTerm(term); Arrays.fill(fieldTFs, 0); }
/** returns the SPIR implementation that should be used for reading the postings * written earlier */ protected PostingInRun getPostingReader() { if (saveTagInformation) { return new BlockFieldPostingInRun(fieldCount); } return new BlockPostingInRun(); }
@Override public void addToLexiconEntry(LexiconEntry _le) { super.addToLexiconEntry(_le); FieldLexiconEntry le = (FieldLexiconEntry)_le; int[] tffs = le.getFieldFrequencies(); addTo(tffs, fieldTFs); }