Merged to trunk. Fixing code to build search index at ontology update NIHVIVO-900

This commit is contained in:
bdc34 2010-07-22 18:29:12 +00:00
parent 1267a25203
commit e95fd811f0

View file

@ -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.ontology.update.OntologyUpdateSettings;
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
@ -101,6 +102,7 @@ public class UpdateKnowledgeBase implements ServletContextListener {
try {
if (ontologyUpdater.updateRequired()) {
ctx.setAttribute(LuceneSetup.INDEX_REBUILD_REQUESTED_AT_STARTUP, Boolean.TRUE);
doMiscAppMetadataReplacements(ctx.getRealPath(MISC_REPLACEMENTS_FILE), oms);
System.out.println(ctx.getRealPath(MISC_REPLACEMENTS_FILE));
}