Examples of SolrIndexEditorProvider


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

        OakSolrConfigurationProvider oakSolrConfigurationProvider = new DefaultSolrConfigurationProvider(configuration);
        jcr.with(new SolrIndexInitializer(false))
                //FIXME OAK-2168 - Enable it again once we do support AggregateIndex and AdvanceQueryIndex
//                .with(AggregateIndexProvider.wrap(new SolrQueryIndexProvider(solrServerProvider, oakSolrConfigurationProvider)))
                .with(new SolrQueryIndexProvider(solrServerProvider, oakSolrConfigurationProvider))
                .with(new SolrIndexEditorProvider(solrServerProvider, oakSolrConfigurationProvider));
    }
View Full Code Here

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

        store = new SegmentNodeStore();
        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(false)) // synchronous
                .with(new SolrQueryIndexProvider(provider, provider))
                .with(new SolrIndexEditorProvider(provider, provider));
        repository = oak
                .createContentRepository();
    }
View Full Code Here

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

                    .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

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(false)) // synchronous
                .with(new SolrQueryIndexProvider(provider, provider))
                .with(new SolrIndexEditorProvider(provider, provider));
        repository = oak
                .createContentRepository();
    }
View Full Code Here

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

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

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

                    .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

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

        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

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

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

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

        state = createInitialState(microKernel);
        provider = new TestUtils();
        server = provider.getSolrServer();
        configuration = provider.getConfiguration();
        hook = new EditorHook(new IndexUpdateProvider(
                new SolrIndexEditorProvider(provider, provider)));
    }
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.