public Iterable<ScoredMatch> decode(Iterable<RawMatch> rawMatches, final double boostedNorm) {
try {
final TermPositions payloads = reader.termPositions(payloadTerm);
return Iterables.transform(rawMatches, new Function<RawMatch, ScoredMatch>() {
private byte[] data = new byte[256];
private ScoredMatch match = new ScoredMatch(0, new DocId(data, 0, 0));
@Override
public ScoredMatch apply(RawMatch rawMatch) {
int rawId = rawMatch.getRawId();
try {
if (payloads.skipTo(rawId) && payloads.doc() == rawId) {