Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IContentIndexHandler

    A handler that appends field values to the Delivery API content index.

    Namespace: Umbraco.Cms.Core.DeliveryApi
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IContentIndexHandler : IDiscoverable

    Methods

    View Source

    GetFields()

    Returns the field definitions required to support the field values in the index.

    Declaration
    IEnumerable<IndexField> GetFields()
    Returns
    Type Description
    IEnumerable<IndexField>

    The field definitions.

    View Source

    GetFieldValues(IContent, String)

    Calculates the field values for a given content item.

    Declaration
    IEnumerable<IndexFieldValue> GetFieldValues(IContent content, string culture)
    Parameters
    Type Name Description
    IContent content

    The content item.

    System.String culture

    The culture to retrieve the field values for (null if the content does not vary by culture).

    Returns
    Type Description
    IEnumerable<IndexFieldValue>

    The values to add to the index.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetFields()
      • GetFieldValues(IContent, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX