public Builder setTermWeightOffsetInfo(TermWeight.Info info, int i) { setOffset(info.getTermOffset(i)); // Only pull the previous skips if the counts match the offsets // offsets, skips, and scores are linked by index so array lengths must match if (info.getTermOffsetCount() == info.getPrevSkipsCount()) { setPrevSkips(info.getPrevSkips(i)); } // Only pull the scores if the counts match the offsets if (info.getTermOffsetCount() == info.getScoreCount()) { setScore(info.getScore(i)); } setZeroOffsetMatch(info.getZeroOffsetMatch()); return this; }