for(int qid: qrels.keySet()) {
for(int docid: qrels.get(qid)) {
if(!docidHistory.contains(docid)) {
docidHistory.add(docid);
IntDocVector vector = env.documentVectors(new int[]{docid})[0];
output.writeInt(docid);
DocumentVectorUtility.newInstance(documentVectorClass, vector).write(output);
}
}
LOGGER.info("Compressed query " + qid);