Examples of IndexingConfiguration


Examples of org.exoplatform.services.jcr.impl.core.query.lucene.IndexingConfiguration

      Element docElement = getIndexingConfigurationDOM(cfm);
      if (docElement == null)
      {
         return null;
      }
      IndexingConfiguration idxCfg = null;
      try
      {
         Class indexingConfigurationClass =
            Class.forName(getIndexingConfigurationClass(), true, this.getClass().getClassLoader());
         idxCfg = (IndexingConfiguration)indexingConfigurationClass.newInstance();
         idxCfg.init(docElement, context, namespaceMappings);
      }
      catch (InstantiationException e)
      {
         log.warn("Exception initializing indexing configuration from: " + getIndexingConfigurationPath(), e);
      }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.core.query.lucene.IndexingConfiguration

      RepositoryConfigurationException {
  Element docElement = getIndexingConfigurationDOM(cfm);
  if (docElement == null) {
      return null;
  }
  IndexingConfiguration idxCfg = null;
  try {
      Class indexingConfigurationClass = Class.forName(
        getIndexingConfigurationClass(), true, this.getClass()
          .getClassLoader());
      idxCfg = (IndexingConfiguration) indexingConfigurationClass
        .newInstance();
      idxCfg.init(docElement, context, namespaceMappings);
  } catch (InstantiationException e) {
      log.warn("Exception initializing indexing configuration from: "
        + getIndexingConfigurationPath(), e);
  } catch (IllegalAccessException e) {
      log.warn("Exception initializing indexing configuration from: "
View Full Code Here

Examples of org.infinispan.configuration.cache.IndexingConfiguration

*/
public class ProgrammaticAutoConfigTest {

   @Test
   public void testWithoutAutoConfig() {
      IndexingConfiguration cfg = new ConfigurationBuilder()
              .indexing().index(Index.ALL).create();
     
      assertTrue(cfg.properties().isEmpty());
   }
View Full Code Here

Examples of org.infinispan.configuration.cache.IndexingConfiguration

      assertTrue(cfg.properties().isEmpty());
   }

   @Test
   public void testLocalWitAutoConfig() {
      IndexingConfiguration cfg = new ConfigurationBuilder()
              .indexing().index(Index.ALL).autoConfig(true)
              .create();

      assertFalse(cfg.properties().isEmpty());
      assertEquals(cfg.properties().get("hibernate.search.default.directory_provider"), "filesystem");
   }
View Full Code Here

Examples of org.infinispan.configuration.cache.IndexingConfiguration

      assertEquals(cfg.properties().get("hibernate.search.default.directory_provider"), "filesystem");
   }

   @Test
   public void testDistWitAutoConfig() {
      IndexingConfiguration cfg = new ConfigurationBuilder()
              .clustering().cacheMode(CacheMode.DIST_SYNC)
              .indexing().index(Index.ALL).autoConfig(true)
              .create();

      assertFalse(cfg.properties().isEmpty());
      assertEquals(cfg.properties().get("hibernate.search.default.directory_provider"), "infinispan");
   }
View Full Code Here

Examples of org.infinispan.configuration.cache.IndexingConfiguration

   }

   @Test
   public void testOverride() {
      String override = "hibernate.search.default.exclusive_index_use";
      IndexingConfiguration cfg = new ConfigurationBuilder()
              .indexing()
              .index(Index.ALL)
              .autoConfig(true)
              .addProperty(override, "false").create();

      assertEquals(cfg.properties().get(override), "false");
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.