class ReadOnlyIndexReferenceFactory extends IndexReferenceFactory {

    @Override
    IndexReference createIndexReference( IndexIdentifier identifier )
            throws IOException, ExplicitIndexNotFoundKernelException
    {
        IndexReader reader = DirectoryReader.open( getIndexDirectory( identifier ) );
        IndexSearcher indexSearcher = newIndexSearcher( identifier, reader );
        return new ReadOnlyIndexReference( identifier, indexSearcher );
    }

    public  ReadOnlyIndexReferenceFactory( LuceneDataSource.LuceneFilesystemFacade filesystemFacade, File baseStorePath,
            IndexTypeCache typeCache );

}