Ejemplo n.º 1
0
  /** Expected to initialize n servlet initializaton. */
  public void contextInitialized(ServletContextEvent event) {

    Configuration config = ConfigUtils.getSystemConfig();
    String programIndex = config.getString("luceneIndex");
    String compositeIndex = config.getString("compositeIndex");
    String spellIndex = config.getString("spellIndex");
    String liveIndex = config.getString("luceneLiveIndex");
    String productIndex = config.getString("luceneProductIndex");
    unlockIndex(programIndex);
    unlockIndex(compositeIndex);
    unlockIndex(spellIndex);
    unlockIndex(liveIndex);
    unlockIndex(productIndex);
  }
Ejemplo n.º 2
0
 private void refreshDidYouMeanIndex() throws IOException {
   Configuration config = ConfigUtils.getSystemConfig();
   String luceneIndex = config.getString("compositeIndex");
   String spellIndex = config.getString("spellIndex");
   DidYouMeanIndexer.createDefaultSpellIndex(luceneIndex, spellIndex);
 }