Search in sources :

Example 1 with LuceneInitializerHelper

use of org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneInitializerHelper in project jackrabbit-oak by apache.

the class MultiSessionQueryTest method before.

@Before
public void before() {
    Jcr jcr = new Jcr();
    // lucene specific
    jcr.with(new LuceneInitializerHelper("lucene").async());
    LuceneIndexProvider provider = new LuceneIndexProvider();
    jcr.with((QueryIndexProvider) provider);
    jcr.with((Observer) provider);
    jcr.with(new LuceneIndexEditorProvider());
    repository = jcr.createRepository();
}
Also used : LuceneIndexEditorProvider(org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider) LuceneInitializerHelper(org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneInitializerHelper) Jcr(org.apache.jackrabbit.oak.jcr.Jcr) LuceneIndexProvider(org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProvider) Before(org.junit.Before)

Aggregations

Jcr (org.apache.jackrabbit.oak.jcr.Jcr)1 LuceneIndexEditorProvider (org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider)1 LuceneIndexProvider (org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProvider)1 LuceneInitializerHelper (org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneInitializerHelper)1 Before (org.junit.Before)1