_s0_docCountHint.put(DocCountPojo.doccount_, 1);
}
DBCursor dbc = DbManager.getDocument().getCounts().find(query, _s0_docCountFields).hint(_s0_docCountHint);
while (dbc.hasNext()) {
BasicDBObject dbo = (BasicDBObject) dbc.next();
Iterator<?> it = dbo.values().iterator();
if (it.hasNext()) {
nDocCount += (double)((Long)it.next()).longValue(); // (from _s0_docCountFields, doccount is only return variable)
}
}
if (0 == nDocCount) { // (Probably shouldn't happen if a harvest has occurred, just don't bomb out