diff --git a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/ILuceneSearchQueryService.cs b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/ILuceneSearchQueryService.cs index 32d8ac4be00..8fa536bc2c2 100644 --- a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/ILuceneSearchQueryService.cs +++ b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/ILuceneSearchQueryService.cs @@ -1,11 +1,21 @@ +using System; using System.Collections.Generic; using System.Threading.Tasks; using Lucene.Net.Search; namespace OrchardCore.Search.Lucene.Services { + [Obsolete("This interface has been deprecated and we will be removed in the next major release, please use OrchardCore.Search.Lucene.Abstractions instead.", false)] public interface ILuceneSearchQueryService { + /// + /// Provides a way to execute a search request in Lucene based on a Lucene Query. + /// + /// + /// + /// + /// + /// IList<string> Task> ExecuteQueryAsync(Query query, string indexName, int start = 0, int end = 20); } } diff --git a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneSearchQueryService.cs b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneSearchQueryService.cs index 6d6788478e6..f4e17b647ee 100644 --- a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneSearchQueryService.cs +++ b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Services/LuceneSearchQueryService.cs @@ -4,7 +4,7 @@ namespace OrchardCore.Search.Lucene.Services { - public class LuceneSearchQueryService : ILuceneSearchQueryService + public class LuceneSearchQueryService : Abstractions.ILuceneSearchQueryService { private readonly LuceneIndexManager _luceneIndexManager; diff --git a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Startup.cs b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Startup.cs index d211fca9d76..c90e32f6a3a 100644 --- a/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Startup.cs +++ b/src/OrchardCore.Modules/OrchardCore.Search.Lucene/Startup.cs @@ -60,7 +60,7 @@ public override void ConfigureServices(IServiceCollection services) services.AddSingleton(); services.AddScoped(); services.AddScoped(); - services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddScoped(); diff --git a/src/OrchardCore/OrchardCore.Search.Lucene.Abstractions/ILuceneSearchQueryService.cs b/src/OrchardCore/OrchardCore.Search.Lucene.Abstractions/ILuceneSearchQueryService.cs index b8d9249105e..c3b4279f3b9 100644 --- a/src/OrchardCore/OrchardCore.Search.Lucene.Abstractions/ILuceneSearchQueryService.cs +++ b/src/OrchardCore/OrchardCore.Search.Lucene.Abstractions/ILuceneSearchQueryService.cs @@ -2,9 +2,9 @@ using System.Threading.Tasks; using Lucene.Net.Search; -namespace OrchardCore.Search.Lucene +namespace OrchardCore.Search.Lucene.Abstractions { - public interface ISearchQueryService + public interface ILuceneSearchQueryService { /// /// Provides a way to execute a search request in Lucene based on a Lucene Query.