// for a bit longer: Commented out since: Dec 10 2012
// FIXME: strange lucene hack: sometimes it tries to load a deleted document
// if (reader.isDeleted(i)) continue;
DocumentStoredFieldVisitor idXLinkSelector = new DocumentStoredFieldVisitor("_id", "_hasxlinks");
reader.document(i, idXLinkSelector);
Document doc = idXLinkSelector.getDocument();
String id = doc.get("_id");
String hasxlinks = doc.get("_hasxlinks");
if(Log.isDebugEnabled(Geonet.INDEX_ENGINE))
Log.debug(Geonet.INDEX_ENGINE, "Got id "+id+" : '"+hasxlinks+"'");