Skip to content

Commit

Permalink
Add full type name for Lucene lock type (OrchardCMS#14805)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewScoggins authored and urbanit committed Mar 18, 2024
1 parent 14b809b commit 8d141c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using Lucene.Net.Spatial.Prefix;
using Lucene.Net.Spatial.Prefix.Tree;
using Lucene.Net.Store;
using LuceneLock = Lucene.Net.Store.Lock;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using OrchardCore.Contents.Indexing;
Expand Down Expand Up @@ -395,7 +396,7 @@ private async Task WriteAsync(string indexName, Action<IndexWriter> action, bool
var config = new IndexWriterConfig(LuceneSettings.DefaultVersion, analyzer)
{
OpenMode = OpenMode.CREATE_OR_APPEND,
WriteLockTimeout = Lock.LOCK_POLL_INTERVAL * 3
WriteLockTimeout = LuceneLock.LOCK_POLL_INTERVAL * 3
};

writer = new IndexWriterWrapper(directory, config);
Expand Down

0 comments on commit 8d141c7

Please sign in to comment.