Search in sources :

Example 1 with DefaultSolrServerProvider

use of org.apache.jackrabbit.oak.plugins.index.solr.server.DefaultSolrServerProvider in project jackrabbit-oak by apache.

the class SubtreeSolrIndexIT method createRepository.

@Override
protected ContentRepository createRepository() {
    try {
        DefaultSolrServerProvider solrServerProvider = new DefaultSolrServerProvider();
        DefaultSolrConfigurationProvider oakSolrConfigurationProvider = new DefaultSolrConfigurationProvider();
        return new Oak().with(new InitialContent()).with(new OpenSecurityProvider()).with(new SolrQueryIndexProvider(solrServerProvider, oakSolrConfigurationProvider)).with(new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider)).createContentRepository();
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}
Also used : DefaultSolrServerProvider(org.apache.jackrabbit.oak.plugins.index.solr.server.DefaultSolrServerProvider) InitialContent(org.apache.jackrabbit.oak.InitialContent) DefaultSolrConfigurationProvider(org.apache.jackrabbit.oak.plugins.index.solr.configuration.DefaultSolrConfigurationProvider) Oak(org.apache.jackrabbit.oak.Oak) OpenSecurityProvider(org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider) SolrIndexEditorProvider(org.apache.jackrabbit.oak.plugins.index.solr.index.SolrIndexEditorProvider)

Example 2 with DefaultSolrServerProvider

use of org.apache.jackrabbit.oak.plugins.index.solr.server.DefaultSolrServerProvider in project jackrabbit-oak by apache.

the class SolrIndexIT method createRepository.

@Override
protected ContentRepository createRepository() {
    try {
        DefaultSolrServerProvider solrServerProvider = new DefaultSolrServerProvider();
        DefaultSolrConfigurationProvider oakSolrConfigurationProvider = new DefaultSolrConfigurationProvider();
        return new Oak().with(new InitialContent()).with(new OpenSecurityProvider()).with(new SolrQueryIndexProvider(solrServerProvider, oakSolrConfigurationProvider)).with(new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider)).createContentRepository();
    } catch (Exception e) {
        throw new RuntimeException(e);
    }
}
Also used : DefaultSolrServerProvider(org.apache.jackrabbit.oak.plugins.index.solr.server.DefaultSolrServerProvider) InitialContent(org.apache.jackrabbit.oak.InitialContent) DefaultSolrConfigurationProvider(org.apache.jackrabbit.oak.plugins.index.solr.configuration.DefaultSolrConfigurationProvider) Oak(org.apache.jackrabbit.oak.Oak) OpenSecurityProvider(org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider) SolrIndexEditorProvider(org.apache.jackrabbit.oak.plugins.index.solr.index.SolrIndexEditorProvider)

Aggregations

InitialContent (org.apache.jackrabbit.oak.InitialContent)2 Oak (org.apache.jackrabbit.oak.Oak)2 DefaultSolrConfigurationProvider (org.apache.jackrabbit.oak.plugins.index.solr.configuration.DefaultSolrConfigurationProvider)2 SolrIndexEditorProvider (org.apache.jackrabbit.oak.plugins.index.solr.index.SolrIndexEditorProvider)2 DefaultSolrServerProvider (org.apache.jackrabbit.oak.plugins.index.solr.server.DefaultSolrServerProvider)2 OpenSecurityProvider (org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider)2