Calls the provided function with an instance of an Option[DirectoryReader] that gets created from the current Lucene Directory object.
Calls the provided function with an instance of an Option[DirectoryReader] that gets created from the current Lucene Directory object. When the parameter is None, it means that the index has not been created yet, or it's corrupted.
Provides the index directory path to the function f
Provides the index directory path to the function f
Calls the provided function with an instance of an Option[IndexSearcher] that gets created from the current Lucene Directory object.
Calls the provided function with an instance of an Option[IndexSearcher] that gets created from the current Lucene Directory object. When the parameter is None, it means that the index has not been created yet, or it's corrupted.
A LuceneDirectory that uses a SimpleFSDirectory based on the ServiceRootLucenePathProvider