Hit hit = (Hit) i.next();
Key key = new Key(hit.getDocument().getField(KEYNAME).stringValue());
matches.add(new IndexMatch(key, -1, -1));
}
} catch (IOException e) {
throw new ProcessingException("Failed to process a query", e);
} finally {
searcher.free();
}
return (IndexMatch[]) matches.toArray(EMPTY_MATCHES);