Search Results for

    Show / Hide Table of Contents
    View Source

    Class NoopBackOfficeExamineSearcher

    Represents a no-operation (noop) implementation of the back office Examine searcher, which performs no search actions. This can be used as a placeholder or default when search functionality is not required.

    Inheritance
    object
    Namespace: Umbraco.Cms.Infrastructure.Examine
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class NoopBackOfficeExamineSearcher : IBackOfficeExamineSearcher

    Constructors

    View Source

    NoopBackOfficeExamineSearcher()

    Declaration
    public NoopBackOfficeExamineSearcher()

    Methods

    View Source

    Search(string, UmbracoEntityTypes, int, long, out long, string[]?, bool?, string?, bool)

    Simulates a search against the back office examine index, but always returns no results.

    Declaration
    public 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 number of results to return per page.

    long pageIndex

    The index of the page of results to return.

    long totalFound

    Outputs the total number of results found (always zero).

    string[] contentTypeAliases

    Optional array of content type aliases to filter the search.

    bool? trashed

    Optional filter to include trashed items.

    string searchFrom

    Optional starting point for the search.

    bool ignoreUserStartNodes

    Whether to ignore user start nodes in the search.

    Returns
    Type Description
    IEnumerable<ISearchResult>

    An empty enumerable, as this implementation does not perform any search.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX