}
if (clauses.size() > 0) {
QueryNode idQuery = new OrderedOrQueryNode(clauses, null, null, null, false, false);
Map<String, Object> entries = value.getEntries();
do {
long docId = idQuery.doc();
Bytes idTerm = idQuery.term();
byte[] idBytes = idTerm.subBytes(NUM_ID_BYTES, idTerm.getLength()-NUM_ID_BYTES).getBytes();
Object val = entries.get(Util.encodeBytes(idBytes));
DbServiceUtil.sencodeMulti(ArrayBytes.EMPTY_BYTES, val, edits, docId, false);
} while(idQuery.next());