• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Class ExamineExtensions

    Extension methods for Examine.

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

    Methods

    View Source

    ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedCache)

    Creates an containing all content from the cache.

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

    The search results.

    IPublishedCache cache

    The cache to fetch the content from.

    Returns
    Type Description
    IEnumerable<PublishedSearchResult>

    An containing all content.

    Remarks

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

    View Source

    ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedSnapshot)

    Creates an 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
    IEnumerable<ISearchResult> results

    The search results.

    IPublishedSnapshot snapshot

    The snapshot.

    Returns
    Type Description
    IEnumerable<PublishedSearchResult>

    An 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.

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