Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedSearchResult

    Represents a search result containing published content and its relevance score.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public class PublishedSearchResult

    Constructors

    View Source

    PublishedSearchResult(IPublishedContent, float)

    Initializes a new instance of the PublishedSearchResult class.

    Declaration
    public PublishedSearchResult(IPublishedContent content, float score)
    Parameters
    Type Name Description
    IPublishedContent content

    The published content item.

    float score

    The relevance score of the search result.

    Properties

    View Source

    Content

    Gets the published content item.

    Declaration
    public IPublishedContent Content { get; }
    Property Value
    Type Description
    IPublishedContent
    View Source

    Score

    Gets the relevance score of the search result.

    Declaration
    public float Score { get; }
    Property Value
    Type Description
    float
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX