Package org.apache.jackrabbit.oak.plugins.index.solr.embedded

Examples of org.apache.jackrabbit.oak.plugins.index.solr.embedded.EmbeddedSolrServerProvider


        try {
            // try reading configuration from the configured repository path
            UpToDateNodeStateConfiguration nodeStateConfiguration = new UpToDateNodeStateConfiguration(
                    nodeStore, String.valueOf(context.getProperties().get(
                    CONFIGURATION_PATH)));
            solrServerProvider = new EmbeddedSolrServerProvider(
                    nodeStateConfiguration.getSolrServerConfiguration());
            oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider(
                    nodeStateConfiguration);
        } catch (Exception e) {
            // use the default config and the OSGi based server configuration
            solrServerProvider = new EmbeddedSolrServerProvider(
                    solrServerConfigurationProvider.getSolrServerConfiguration());
            oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider();
        }
    }
View Full Code Here


        try {
            // try reading configuration from the configured repository path
            UpToDateNodeStateConfiguration nodeStateConfiguration = new UpToDateNodeStateConfiguration(
                    nodeStore, String.valueOf(context.getProperties().get(
                    CONFIGURATION_PATH)));
            solrServerProvider = new EmbeddedSolrServerProvider(
                    nodeStateConfiguration.getSolrServerConfiguration());
            oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider(
                    nodeStateConfiguration);
        } catch (Exception e) {
            // use the default config and the OSGi based server configuration
            solrServerProvider = new EmbeddedSolrServerProvider(
                    solrServerConfigurationProvider.getSolrServerConfiguration());
            oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider();
        }
    }
View Full Code Here

    public void activate(ComponentContext context) throws Exception {
        try {
            // try reading configuration from the configured repository path
            UpToDateNodeStateConfiguration nodeStateConfiguration = new UpToDateNodeStateConfiguration(nodeStore, String.valueOf(
                    context.getProperties().get(CONFIGURATION_PATH)));
            solrServerProvider = new EmbeddedSolrServerProvider(nodeStateConfiguration.getSolrServerConfiguration());
            oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider(nodeStateConfiguration);
        } catch (Exception e) {
            // use the default config and the OSGi based server configuration
            solrServerProvider = new EmbeddedSolrServerProvider(solrServerConfigurationProvider.getSolrServerConfiguration());
            oakSolrConfigurationProvider = new EmbeddedSolrConfigurationProvider();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.solr.embedded.EmbeddedSolrServerProvider

Copyright © 2018 www.massapicom. 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.