algoliasearch/src/offline/java/com/algolia/search/saas/MirroredIndex.java
private synchronized void ensureLocalIndex()
    {
        if (localIndex == null) {
            localIndex = new LocalIndex(getClient().getRootDataDir().getAbsolutePath(), getClient().getApplicationID(), getRawIndexName());
        }
    }
private synchronized void ensureLocalIndex()
    {
        if (localIndex == null) {
            localIndex = new LocalIndex(getClient().getRootDataDir().getAbsolutePath(), getClient().getApplicationID(), getRawIndexName());
        }
    }
private synchronized void ensureLocalIndex ( ) { if ( localIndex == null ) { localIndex = new LocalIndex ( getClient ( ) . getRootDataDir ( ) . getAbsolutePath ( ) , getClient ( ) . getApplicationID ( ) , getRawIndexName ( ) ) ; } }
Lazy instantiate the local index.
Lazy instantiate the local index .