Hi Adrien,
You need a few things to get the full-test index working:
// (1)
LuceneIndexProvider provider = new LuceneIndexProvider();
oak.with((QueryIndexProvider) provider);
oak.with((Observer) provider);
// (2)
oak.with(new LuceneIndexEditorProvider());
// (3)
oak.with(new LuceneInitializerHelper("lucene", (Set<String>) null));
// (4)
oak.withAsyncIndexing();
(1) lucene query index and observer for the query parts, (2) lucene
indexer, (3) index definition, (4) signal that you want to start the
background index process.
Also make sure you have a scheduler installed so that the background
indexing thread can run.
hope this helps,
alex
On Sun, Oct 19, 2014 at 9:01 PM, Adrien Lamoureux <
[email protected]> wrote:
> Hello,
>
>
> I'm doing this without success:
>
> oak.with(new LuceneIndexEditorProvider());
>
> oak.with((QueryIndexProvider)new LuceneIndexProvider());
>
> what am I missing?
>
> I prefer to avoid repository.xml configuration, and OSGi configuration.
>
> Thanks,
>
> Adrien
>