Search in sources :

Example 11 with LuceneIndexEditorProvider

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

the class LocalIndexWriterFactoryTest method setUp.

@Before
public void setUp() throws IOException {
    tracker = new IndexTracker();
    DocumentQueue queue = new DocumentQueue(100, tracker, sameThreadExecutor());
    editorProvider = new LuceneIndexEditorProvider(null, null, null, Mounts.defaultMountInfoProvider());
    editorProvider.setIndexingQueue(queue);
    syncHook = new EditorHook(new IndexUpdateProvider(editorProvider));
    asyncHook = new EditorHook(new IndexUpdateProvider(editorProvider, "async", false));
}
Also used : IndexUpdateProvider(org.apache.jackrabbit.oak.plugins.index.IndexUpdateProvider) LuceneIndexEditorProvider(org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider) IndexTracker(org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker) EditorHook(org.apache.jackrabbit.oak.spi.commit.EditorHook) Before(org.junit.Before)

Aggregations

LuceneIndexEditorProvider (org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider)11 LuceneIndexProvider (org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProvider)8 IndexTracker (org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker)5 IndexCopier (org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier)4 Before (org.junit.Before)4 IOException (java.io.IOException)3 Oak (org.apache.jackrabbit.oak.Oak)3 DocumentQueue (org.apache.jackrabbit.oak.plugins.index.lucene.hybrid.DocumentQueue)3 DefaultIndexReaderFactory (org.apache.jackrabbit.oak.plugins.index.lucene.reader.DefaultIndexReaderFactory)3 LuceneIndexReaderFactory (org.apache.jackrabbit.oak.plugins.index.lucene.reader.LuceneIndexReaderFactory)3 Observer (org.apache.jackrabbit.oak.spi.commit.Observer)3 MountInfoProvider (org.apache.jackrabbit.oak.spi.mount.MountInfoProvider)3 QueryIndexProvider (org.apache.jackrabbit.oak.spi.query.QueryIndexProvider)3 OpenSecurityProvider (org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider)3 InitialContent (org.apache.jackrabbit.oak.InitialContent)2 IndexUpdateProvider (org.apache.jackrabbit.oak.plugins.index.IndexUpdateProvider)2 EditorHook (org.apache.jackrabbit.oak.spi.commit.EditorHook)2 Mounts.defaultMountInfoProvider (org.apache.jackrabbit.oak.spi.mount.Mounts.defaultMountInfoProvider)2 File (java.io.File)1 Set (java.util.Set)1