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

Examples of org.apache.jackrabbit.oak.plugins.index.solr.index.SolrIndexEditorProvider


        store = new KernelNodeStore(microKernel);
        provider = new TestUtils();
        server = provider.getSolrServer();
        configuration = provider.getConfiguration();
        hook = new EditorHook(new IndexUpdateProvider(
                new SolrIndexEditorProvider(provider, provider)));
        Oak oak = new Oak().with(new InitialContent())
                .with(new OpenSecurityProvider())
                .with(new SolrIndexInitializer())
                .with(new SolrQueryIndexProvider(provider, provider))
                .with(new SolrIndexEditorProvider(provider, provider));
        repository = oak
                .createContentRepository();
    }
View Full Code Here


        solrServer = provider.getSolrServer();
        try {
            return new Oak().with(new InitialContent())
                    .with(new OpenSecurityProvider())
                    .with(new SolrQueryIndexProvider(provider, provider))
                    .with(new SolrIndexEditorProvider(provider, provider))
                    .createContentRepository();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

    @CheckForNull
    public Editor getIndexEditor(@Nonnull String type, @Nonnull NodeBuilder definition,
                    @Nonnull NodeState root, IndexUpdateCallback callback) throws CommitFailedException {
        Editor indexEditor = null;
        if (solrServerProvider != null && oakSolrConfigurationProvider != null && solrIndexEditorProvider == null) {
            solrIndexEditorProvider = new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider);
            indexEditor = solrIndexEditorProvider.getIndexEditor(type, definition, root, callback);
        }
        return indexEditor;
    }
View Full Code Here

    @CheckForNull
    public Editor getIndexEditor(@Nonnull String type, @Nonnull NodeBuilder definition,
                    @Nonnull NodeState root, @Nonnull IndexUpdateCallback callback) throws CommitFailedException {
        Editor indexEditor = null;
        if (solrServerProvider != null && oakSolrConfigurationProvider != null && solrIndexEditorProvider == null) {
            solrIndexEditorProvider = new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider);
            indexEditor = solrIndexEditorProvider.getIndexEditor(type, definition, root, callback);
        }
        return indexEditor;
    }
View Full Code Here

        solrServer = provider.getSolrServer();
        try {
            return new Oak().with(new InitialContent())
                    .with(new OpenSecurityProvider())
                    .with(new SolrQueryIndexProvider(provider, provider))
                    .with(new SolrIndexEditorProvider(provider, provider))
                    .createContentRepository();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

                    .with(new CompositeQueryIndexProvider(
                            new SolrQueryIndexProvider(provider, provider),
                            new PropertyIndexProvider()
                    ))
                    .with(new CompositeIndexEditorProvider(
                            new SolrIndexEditorProvider(provider, provider),
                            new PropertyIndexEditorProvider()
                    ))
                    .createContentRepository();
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

                    .with(new CompositeQueryIndexProvider(
                            new SolrQueryIndexProvider(provider, provider),
                            new PropertyIndexProvider()
                            ))
                    .with(new CompositeIndexEditorProvider(
                            new SolrIndexEditorProvider(provider, provider),
                            new PropertyIndexEditorProvider()
                            ))
                    .createContentRepository();
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

            }
        };
        OakSolrConfigurationProvider oakSolrConfigurationProvider = new DefaultSolrConfigurationProvider();
        jcr.with(new SolrIndexInitializer(false))
                .with(AggregateIndexProvider.wrap(new SolrQueryIndexProvider(solrServerProvider, oakSolrConfigurationProvider)))
                .with(new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider));
    }
View Full Code Here

            }
        };
        OakSolrConfigurationProvider oakSolrConfigurationProvider = new DefaultSolrConfigurationProvider(configuration);
        jcr.with(new SolrIndexInitializer(false))
                .with(AggregateIndexProvider.wrap(new SolrQueryIndexProvider(solrServerProvider, oakSolrConfigurationProvider)))
                .with(new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider));
    }
View Full Code Here

                    .with(new CompositeQueryIndexProvider(
                            new SolrQueryIndexProvider(provider, provider),
                            new PropertyIndexProvider()
                    ))
                    .with(new CompositeIndexEditorProvider(
                            new SolrIndexEditorProvider(provider, provider),
                            new PropertyIndexEditorProvider()
                    ))
                    .createContentRepository();
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.solr.index.SolrIndexEditorProvider

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.