Search Results for

    Show / Hide Table of Contents

    Class ExamineExtensions

    Extension methods for Examine.

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: cs.temp.dll.dll
    Syntax
    public static class ExamineExtensions

    Methods

    ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedCache)

    Creates an System.Collections.Generic.IEnumerable<T> containing all content from the cache.

    Declaration
    public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, IPublishedCache cache)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ISearchResult> results

    The search results.

    IPublishedCache cache

    The cache to fetch the content from.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<PublishedSearchResult>

    An System.Collections.Generic.IEnumerable<T> containing all content.

    Remarks

    Search results are skipped if it can't be fetched from the cache by its integer id.

    Exceptions
    Type Condition
    System.ArgumentNullException

    cache

    ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedSnapshot)

    Creates an System.Collections.Generic.IEnumerable<T> containing all content, media or members from the snapshot.

    Declaration
    public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, IPublishedSnapshot snapshot)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<ISearchResult> results

    The search results.

    IPublishedSnapshot snapshot

    The snapshot.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<PublishedSearchResult>

    An System.Collections.Generic.IEnumerable<T> containing all content, media or members.

    Remarks

    Search results are skipped if it can't be fetched from the respective cache by its integer id.

    Exceptions
    Type Condition
    System.ArgumentNullException

    snapshot

    In This Article
    • Methods
      • ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedCache)
      • ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedSnapshot)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX