Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add full type name for Lucene lock type #14805

Merged
merged 7 commits into from
Dec 19, 2023
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