Fixing bug where objects of statements would not get added to index. NIHVIVO-2021
This commit is contained in:
parent
29169acc5e
commit
eae86daac4
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue