model.init(collection, index);
int totalRetrieved = 0;
for (String topicId : topicIds) {
logger.info(String.format("Answering topic %s", topicId));
Topic topic = topics.get(topicId);
ObjectArrayList<DocumentScoreInfo<Reference2ObjectMap<Index, SelectedInterval[]>>> results = new ObjectArrayList<>();
Set<String> discardedDocuments = null;
if (discarded != null) {
Map<String, Integer> map = discarded.get(topicId);