beginningOfDay.set(Calendar.MILLISECOND, 0);
long dayInMillis = beginningOfDay.getTimeInMillis();
long timeInMillis = moment.getTime() - dayInMillis;
doc.add(new Field("moment", DateField.dateToString(moment), true, true, true));
doc.add(new Field("momentDateSort", String.valueOf(dayInMillis), false, true, false));
doc.add(new Field("momentTimeSort", String.valueOf(timeInMillis), false, true, false));
doc.add(new Field("botname", botname, true, true, true));
doc.add(new Field("channel", channelname, true, true, true));
doc.add(new Field("servername", servername, true, true, true));
doc.add(new Field("nickname", message.getPrefix().getNickName(), true, true, true));
doc.add(new Field("username", message.getPrefix().getUser(), true, true, true));
doc.add(new Field("hostname", message.getPrefix().getHost(), true, true, true));
doc.add(new Field("message", message.getTrailing(), true, true, true));
addDocumentToQueue(getIndexName(botname, servername, channelname), doc);
}