String line = in.nextLine();
if (line.startsWith("get ")) {
String idStr = line.substring(4);
DocId docId = new DocId(idStr);
System.out.println(ims.getDocument(idStr));
Boosts boosts = ddm.getBoosts(docId);
System.out.println("timestamp: " + boosts.getTimestamp());
for (int i = 0; i < bc; i++) {
System.out.println("var["+i+"]: " + boosts.getBoost(i));
}
System.out.println(ddm.getCategoryValues(docId));
} else {
List<String> suggestions = index.getMostPopular(line);
for (String sugg : suggestions) {