Fixing bug where objects of statements would not get added to index. NIHVIVO-2021

This commit is contained in:
bdc34 2011-02-04 20:54:02 +00:00
parent 29169acc5e
commit eae86daac4
2 changed files with 4 additions and 3 deletions

View file

@ -126,8 +126,7 @@ public class ObjectPropertyStatementDaoSDB extends
objPropertyStmt.getObjectURI(), objPropertyStmt.getObjectURI(),
this.dwf, this.dwf,
datasetMode, datasetMode,
getWebappDaoFactory(), getWebappDaoFactory());
IndividualSDB.SKIP_INITIALIZATION);
objPropertyStmt.setObject(objInd); objPropertyStmt.setObject(objInd);
} }

View file

@ -267,7 +267,9 @@ public class Entity2LuceneDoc implements Obj2DocIface{
continue; continue;
try { try {
value+= " "+ ( ((t=objectPropertyStmt.getObject().getName()) == null)?"":t ); value+= " "+ ( ((t=objectPropertyStmt.getObject().getName()) == null)?"":t );
} catch (Exception e) { } } catch (Exception e) {
log.debug("could not index name of related object: " + e.getMessage());
}
} }
} }