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);