From 75e9e7a76cf33d2511cd4f23cfd42b64509e8522 Mon Sep 17 00:00:00 2001 From: Drew Scoggins Date: Tue, 19 Dec 2023 11:53:02 -0800 Subject: [PATCH] Add full type name for Lucene lock type (#14805) --- .../OrchardCore.Search.Lucene/Services/LuceneIndexManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneIndexManager.cs b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneIndexManager.cs index 13b7cb8fcee..fac25709bf3 100644 --- a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneIndexManager.cs +++ b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneIndexManager.cs @@ -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; @@ -395,7 +396,7 @@ private async Task WriteAsync(string indexName, Action 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);