V17 - Removed obsoleted code from Umbraco.Examine (#19966)
Removing obsoleted code from BackOfficeExamineSearcher.cs and dependencies
This commit is contained in:
@@ -8,28 +8,6 @@ namespace Umbraco.Cms.Infrastructure.Examine;
|
||||
/// </summary>
|
||||
public interface IBackOfficeExamineSearcher
|
||||
{
|
||||
[Obsolete("Please use the method that accepts all parameters. Will be removed in V17.")]
|
||||
IEnumerable<ISearchResult> Search(
|
||||
string query,
|
||||
UmbracoEntityTypes entityType,
|
||||
int pageSize,
|
||||
long pageIndex,
|
||||
out long totalFound,
|
||||
string? searchFrom = null,
|
||||
bool ignoreUserStartNodes = false);
|
||||
|
||||
[Obsolete("Please use the method that accepts all parameters. Will be removed in V17.")]
|
||||
IEnumerable<ISearchResult> Search(
|
||||
string query,
|
||||
UmbracoEntityTypes entityType,
|
||||
int pageSize,
|
||||
long pageIndex,
|
||||
out long totalFound,
|
||||
string[]? contentTypeAliases,
|
||||
string? searchFrom = null,
|
||||
bool ignoreUserStartNodes = false)
|
||||
=> Search(query, entityType, pageSize, pageIndex, out totalFound, searchFrom, ignoreUserStartNodes);
|
||||
|
||||
// default implementation to avoid breaking changes falls back to old behaviour
|
||||
IEnumerable<ISearchResult> Search(
|
||||
string query,
|
||||
@@ -40,6 +18,5 @@ public interface IBackOfficeExamineSearcher
|
||||
string[]? contentTypeAliases,
|
||||
bool? trashed,
|
||||
string? searchFrom = null,
|
||||
bool ignoreUserStartNodes = false)
|
||||
=> Search(query, entityType, pageSize, pageIndex, out totalFound, null, searchFrom, ignoreUserStartNodes);
|
||||
bool ignoreUserStartNodes = false);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,8 @@ public class NoopBackOfficeExamineSearcher : IBackOfficeExamineSearcher
|
||||
int pageSize,
|
||||
long pageIndex,
|
||||
out long totalFound,
|
||||
string[]? contentTypeAliases,
|
||||
bool? trashed,
|
||||
string? searchFrom = null,
|
||||
bool ignoreUserStartNodes = false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user