Interface IDirectoryFactory
- Namespace
- Examine.Lucene.Directories
- Assembly
- Examine.Lucene.dll
Creates a Lucene Lucene.Net.Store.Directory for an index
public interface IDirectoryFactory : IDisposable
- Inherited Members
Remarks
The directory created must only be created ONCE per index and disposed when the factory is disposed.
Methods
CreateDirectory(LuceneIndex, bool)
Creates the directory instance
Directory CreateDirectory(LuceneIndex luceneIndex, bool forceUnlock)
Parameters
luceneIndex
LuceneIndexforceUnlock
boolIf true, will force unlock the directory when created
Returns
- Directory
Remarks
Any subsequent calls for the same index will return the same directory instance
CreateTaxonomyDirectory(LuceneIndex, bool)
Creates the directory instance for the Taxonomy Index
Directory CreateTaxonomyDirectory(LuceneIndex luceneIndex, bool forceUnlock)
Parameters
luceneIndex
LuceneIndexforceUnlock
boolIf true, will force unlock the directory when created
Returns
- Directory
Remarks
Any subsequent calls for the same index will return the same directory instance