Interface IBackOfficeExamineSearcher
Used to search the back office for Examine indexed entities (Documents, Media and Members)
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IBackOfficeExamineSearcher
Methods
View SourceSearch(string, UmbracoEntityTypes, int, long, out long, string[]?, bool?, string?, bool)
Searches the back office Examine index using the specified query and parameters.
Declaration
IEnumerable<ISearchResult> Search(string query, UmbracoEntityTypes entityType, int pageSize, long pageIndex, out long totalFound, string[]? contentTypeAliases, bool? trashed, string? searchFrom = null, bool ignoreUserStartNodes = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | query | The search query string. |
| UmbracoEntityTypes | entityType | The type of Umbraco entity to search for. |
| int | pageSize | The maximum number of results to return per page. |
| long | pageIndex | The zero-based index of the results page to return. |
| long | totalFound | When this method returns, contains the total number of results matching the query. |
| string[] | contentTypeAliases | An optional array of content type aliases to filter the search results; pass |
| bool? | trashed | Optional filter to include only trashed ( |
| string | searchFrom | An optional starting point (node ID or path) for the search; pass |
| bool | ignoreUserStartNodes | If |
Returns
| Type | Description |
|---|---|
| IEnumerable<ISearchResult> | An enumerable collection of Examine.ISearchResult objects matching the query and filters. |
Remarks
default implementation to avoid breaking changes falls back to old behaviour