Interface IDirectoryFactory
- Namespace
- Examine.Lucene.Directories
- Assembly
- Examine.Lucene.dll
Creates a Lucene Lucene.Net.Store.Directory for an index
public interface IDirectoryFactory
Remarks
Used by the index to create directory instance for the index. The index is responsible for managing the lifetime of the directory instance. To enable taxonomy-based faceting, also implement ITaxonomyDirectoryFactory.
Methods
CreateDirectory(LuceneIndex, bool)
Creates the directory instance
Directory CreateDirectory(LuceneIndex luceneIndex, bool forceUnlock)
Parameters
luceneIndexLuceneIndexforceUnlockboolIf true, will force unlock the directory when created
Returns
- Directory
Remarks
Any subsequent calls for the same index will return the same directory instance