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(),
this.dwf,
datasetMode,
getWebappDaoFactory(),
IndividualSDB.SKIP_INITIALIZATION);
getWebappDaoFactory());
objPropertyStmt.setObject(objInd);
}

View file

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