Search Results for

    Show / Hide Table of Contents

    Class LikeDocumentDescriptor<TDocument>

    An indexed or artificial document with which to find likeness

    Inheritance
    object
    DescriptorBase<LikeDocumentDescriptor<TDocument>, ILikeDocument>
    LikeDocumentDescriptor<TDocument>
    Implements
    IDescriptor
    ILikeDocument
    Inherited Members
    DescriptorBase<LikeDocumentDescriptor<TDocument>, ILikeDocument>.Self
    DescriptorBase<LikeDocumentDescriptor<TDocument>, ILikeDocument>.Assign<TValue>(TValue, Action<ILikeDocument, TValue>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class LikeDocumentDescriptor<TDocument> : DescriptorBase<LikeDocumentDescriptor<TDocument>, ILikeDocument>, IDescriptor, ILikeDocument where TDocument : class
    Type Parameters
    Name Description
    TDocument

    Constructors

    | Edit this page View Source

    LikeDocumentDescriptor()

    Declaration
    public LikeDocumentDescriptor()

    Methods

    | Edit this page View Source

    Document(TDocument)

    A document to find other documents like

    Declaration
    public LikeDocumentDescriptor<TDocument> Document(TDocument document)
    Parameters
    Type Name Description
    TDocument document
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>
    | Edit this page View Source

    Fields(Fields)

    The fields to use for likeness

    Declaration
    public LikeDocumentDescriptor<TDocument> Fields(Fields fields)
    Parameters
    Type Name Description
    Fields fields
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>
    | Edit this page View Source

    Fields(Func<FieldsDescriptor<TDocument>, IPromise<Fields>>)

    The fields to use for likeness

    Declaration
    public LikeDocumentDescriptor<TDocument> Fields(Func<FieldsDescriptor<TDocument>, IPromise<Fields>> fields)
    Parameters
    Type Name Description
    Func<FieldsDescriptor<TDocument>, IPromise<Fields>> fields
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>
    | Edit this page View Source

    Id(Id)

    The id of an indexed document to find other documents like

    Declaration
    public LikeDocumentDescriptor<TDocument> Id(Id id)
    Parameters
    Type Name Description
    Id id
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>
    | Edit this page View Source

    Index(IndexName)

    The index of an indexed document to find other documents like

    Declaration
    public LikeDocumentDescriptor<TDocument> Index(IndexName index)
    Parameters
    Type Name Description
    IndexName index
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>
    | Edit this page View Source

    PerFieldAnalyzer(Func<PerFieldAnalyzerDescriptor<TDocument>, IPromise<IPerFieldAnalyzer>>)

    A different analyzer than the one defined for the target fields

    Declaration
    public LikeDocumentDescriptor<TDocument> PerFieldAnalyzer(Func<PerFieldAnalyzerDescriptor<TDocument>, IPromise<IPerFieldAnalyzer>> analyzerSelector)
    Parameters
    Type Name Description
    Func<PerFieldAnalyzerDescriptor<TDocument>, IPromise<IPerFieldAnalyzer>> analyzerSelector
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>
    | Edit this page View Source

    Routing(Routing)

    The routing value of an indexed document to find other documents like

    Declaration
    public LikeDocumentDescriptor<TDocument> Routing(Routing routing)
    Parameters
    Type Name Description
    Routing routing
    Returns
    Type Description
    LikeDocumentDescriptor<TDocument>

    Implements

    IDescriptor
    ILikeDocument

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • LikeDocumentDescriptor()
    • Methods
      • Document(TDocument)
      • Fields(Fields)
      • Fields(Func<FieldsDescriptor<TDocument>, IPromise<Fields>>)
      • Id(Id)
      • Index(IndexName)
      • PerFieldAnalyzer(Func<PerFieldAnalyzerDescriptor<TDocument>, IPromise<IPerFieldAnalyzer>>)
      • Routing(Routing)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX