Hi, On Wed, Oct 26, 2011 at 9:22 AM, <[email protected]> wrote: > I could now implement a delay in my tests but the best solution would be to > wait until the XMLTextExtractor job is finished. Is there a possibility to do > that or am I completely wrong with my suggestion?
If you don't mind accessing the underlying implementation classes, you can use the flush() method of the underlying SearchIndex implementation to ensure that all pending indexing tasks have been completed. See the o.a.j.core.query.lucene.IndexingQueueTest class in jackrabbit-core for an example of how this works. BR, Jukka Zitting
