Hi Robert, You could use the IndexStatsMBean [0] to poll for the indexing status, waiting until indexing is completed.
hope this helps, alex [0] https://github.com/stillalex/jackrabbit-oak/blob/trunk/oak-api/src/main/java/org/apache/jackrabbit/oak/api/jmx/IndexStatsMBean.java#L26 On Thu, Oct 5, 2017 at 4:49 PM, Robert Munteanu <[email protected]> wrote: > Hi, > > In Sling we have some tests which validate that full text search is > working. Occasionaly this test times out because the full-text lucene > index is not updated and a traversal query is used. More details at > [1]. > > We should probably add a way of waiting for the index to be updated, so > my question is - what would be the way to do that? Ideally we would do > this from outside the Oak/Sling process, but can also deploy an OSGi > bundle if needed. > > Thanks, > > Robert > > > [1]: https://issues.apache.org/jira/browse/SLING-7169 >
