// add separate index for node id
byte[] idData = new byte[nodeIdLen + 4];
ByteConversion.intToByteH(currentDoc.getDocId(), idData, 0);
pending.getNodeId().serialize(idData, 4);
BinaryTokenStream bts = new BinaryTokenStream(new BytesRef(idData));
Field fNodeIdIdx = new Field(FIELD_ID, bts, LuceneIndexWorker.TYPE_NODE_ID);
doc.add(fNodeIdIdx);
for (TextCollector.Field field : pending.getCollector().getFields()) {
String contentField;