for (int i = 0; i < terms.length; i++)
if (matches[i << 1] > 0)
terms[i] = fetch(matches[i << 1]);
// build the resulting data packet
final int document = hit.getDocument();
QueryHitData result = new QueryHitData(hit.getPenalty(),
documentName(document),
terms);
// fill out the remaining data: xPath locations of terms
_contextTables.setMicroindex(document);
_contextTables.resetContextSearch();