* the indexing queue to the index.
*/
private void checkIndexingQueue(boolean transactionPresent) {
Map<UUID, Document> finished = new HashMap<UUID, Document>();
for (Document document : indexingQueue.getFinishedDocuments()) {
UUID uuid = UUID.fromString(document.get(FieldNames.UUID));
finished.put(uuid, document);
}
// now update index with the remaining ones if there are any
if (!finished.isEmpty()) {
log.info("updating index with {} nodes from indexing queue.",
new Long(finished.size()));
// remove documents from the queue
for (UUID uuid : finished.keySet()) {
indexingQueue.removeDocument(uuid.toString());
}
try {
if (transactionPresent) {
for (UUID uuid : finished.keySet()) {