Merged to trunk. Fixing code to build search index at ontology update NIHVIVO-900
This commit is contained in:
parent
1267a25203
commit
e95fd811f0
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ import edu.cornell.mannlib.vitro.webapp.dao.jena.OntModelSelector;
|
||||||
import edu.cornell.mannlib.vitro.webapp.dao.jena.SimpleOntModelSelector;
|
import edu.cornell.mannlib.vitro.webapp.dao.jena.SimpleOntModelSelector;
|
||||||
import edu.cornell.mannlib.vitro.webapp.ontology.update.OntologyUpdateSettings;
|
import edu.cornell.mannlib.vitro.webapp.ontology.update.OntologyUpdateSettings;
|
||||||
import edu.cornell.mannlib.vitro.webapp.ontology.update.OntologyUpdater;
|
import edu.cornell.mannlib.vitro.webapp.ontology.update.OntologyUpdater;
|
||||||
|
import edu.cornell.mannlib.vitro.webapp.search.lucene.LuceneSetup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Invokes process to test whether the knowledge base needs any updating
|
* Invokes process to test whether the knowledge base needs any updating
|
||||||
|
@ -101,6 +102,7 @@ public class UpdateKnowledgeBase implements ServletContextListener {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (ontologyUpdater.updateRequired()) {
|
if (ontologyUpdater.updateRequired()) {
|
||||||
|
ctx.setAttribute(LuceneSetup.INDEX_REBUILD_REQUESTED_AT_STARTUP, Boolean.TRUE);
|
||||||
doMiscAppMetadataReplacements(ctx.getRealPath(MISC_REPLACEMENTS_FILE), oms);
|
doMiscAppMetadataReplacements(ctx.getRealPath(MISC_REPLACEMENTS_FILE), oms);
|
||||||
System.out.println(ctx.getRealPath(MISC_REPLACEMENTS_FILE));
|
System.out.println(ctx.getRealPath(MISC_REPLACEMENTS_FILE));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue