Class NoPrefixSimpleFsLockFactory
A custom Lucene.Net.Store.SimpleFSLockFactory that ensures a prefixless lock prefix
Inheritance
object
LockFactory
FSLockFactory
SimpleFSLockFactory
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Examine.Lucene.dll
Syntax
public class NoPrefixSimpleFsLockFactory : SimpleFSLockFactory
Remarks
This is a work around for the Lucene APIs. By default Lucene will use a null prefix however when we set a custom lock factory the null prefix is overwritten.
Constructors
View SourceNoPrefixSimpleFsLockFactory(DirectoryInfo)
Declaration
public NoPrefixSimpleFsLockFactory(DirectoryInfo lockDir)
Parameters
| Type | Name | Description |
|---|---|---|
| DirectoryInfo | lockDir |
Properties
View SourceLockPrefix
Gets or Sets the prefix in use for all locks created in this Lucene.Net.Store.LockFactory. This is normally called once, when a Lucene.Net.Store.Directory gets this Lucene.Net.Store.LockFactory instance. However, you can also call this (after this instance is assigned to a Lucene.Net.Store.Directory) to override the prefix in use. This is helpful if you're running Lucene on machines that have different mount points for the same shared directory.
Declaration
public override string LockPrefix { get; set; }
Property Value
| Type | Description |
|---|---|
| string |