//set the node attributes :title,path,lastupdate,calcscore,origscore,id
node.addProperty(RP.title, doc.getTitle());
node.addProperty(RP.path, doc.getPath());
node.addProperty(RP.summary, doc.getDescription());
node.addProperty(RP.lastUpdate, doc.getLastUpdate());
node.addProperty(RP.directScore, doc.getDirectScore());
node.addProperty(RP.calcScore, doc.getCalcScore());
node.addProperty(RP.documentID, doc.getId());
//set the category attributes
node.addProperty(RP.categoryScore, doc.getCategoryScore());