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);
}
}
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);
}
}
Aggregations