Search Results for

    Show / Hide Table of Contents

    Class Field

    Inheritance
    object
    Field
    Implements
    IEquatable<Field>
    IUrlParameter
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class Field : IEquatable<Field>, IUrlParameter

    Constructors

    | Edit this page View Source

    Field(Expression, double?, string)

    Declaration
    public Field(Expression expression, double? boost = null, string format = null)
    Parameters
    Type Name Description
    Expression expression
    double? boost
    string format
    | Edit this page View Source

    Field(PropertyInfo, double?, string)

    Declaration
    public Field(PropertyInfo property, double? boost = null, string format = null)
    Parameters
    Type Name Description
    PropertyInfo property
    double? boost
    string format
    | Edit this page View Source

    Field(string, double?, string)

    Declaration
    public Field(string name, double? boost = null, string format = null)
    Parameters
    Type Name Description
    string name
    double? boost
    string format

    Properties

    | Edit this page View Source

    Boost

    A boost to apply to the field

    Declaration
    public double? Boost { get; set; }
    Property Value
    Type Description
    double?
    | Edit this page View Source

    CachableExpression

    Declaration
    public bool CachableExpression { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Expression

    An expression from which the name of the field can be inferred

    Declaration
    public Expression Expression { get; }
    Property Value
    Type Description
    Expression
    | Edit this page View Source

    Format

    A format to apply to the field.

    Declaration
    public string Format { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Name

    The name of the field

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Property

    A property from which the name of the field can be inferred

    Declaration
    public PropertyInfo Property { get; }
    Property Value
    Type Description
    PropertyInfo

    Methods

    | Edit this page View Source

    And(Field)

    Declaration
    public Fields And(Field field)
    Parameters
    Type Name Description
    Field field
    Returns
    Type Description
    Fields
    | Edit this page View Source

    And(PropertyInfo, double?, string)

    Declaration
    public Fields And(PropertyInfo property, double? boost = null, string format = null)
    Parameters
    Type Name Description
    PropertyInfo property
    double? boost
    string format
    Returns
    Type Description
    Fields
    | Edit this page View Source

    And(string, double?, string)

    Declaration
    public Fields And(string field, double? boost = null, string format = null)
    Parameters
    Type Name Description
    string field
    double? boost
    string format
    Returns
    Type Description
    Fields
    | Edit this page View Source

    And<T>(Expression<Func<T, object>>, double?, string)

    Declaration
    public Fields And<T>(Expression<Func<T, object>> field, double? boost = null, string format = null) where T : class
    Parameters
    Type Name Description
    Expression<Func<T, object>> field
    double? boost
    string format
    Returns
    Type Description
    Fields
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    And<T, TValue>(Expression<Func<T, TValue>>, double?, string)

    Declaration
    public Fields And<T, TValue>(Expression<Func<T, TValue>> field, double? boost = null, string format = null) where T : class
    Parameters
    Type Name Description
    Expression<Func<T, TValue>> field
    double? boost
    string format
    Returns
    Type Description
    Fields
    Type Parameters
    Name Description
    T
    TValue
    | Edit this page View Source

    Equals(Field)

    Declaration
    public bool Equals(Field other)
    Parameters
    Type Name Description
    Field other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    operator ==(Field, Field)

    Declaration
    public static bool operator ==(Field x, Field y)
    Parameters
    Type Name Description
    Field x
    Field y
    Returns
    Type Description
    bool
    | Edit this page View Source

    implicit operator Field(Expression)

    Declaration
    public static implicit operator Field(Expression expression)
    Parameters
    Type Name Description
    Expression expression
    Returns
    Type Description
    Field
    | Edit this page View Source

    implicit operator Field(PropertyInfo)

    Declaration
    public static implicit operator Field(PropertyInfo property)
    Parameters
    Type Name Description
    PropertyInfo property
    Returns
    Type Description
    Field
    | Edit this page View Source

    implicit operator Field(string)

    Declaration
    public static implicit operator Field(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    Field
    | Edit this page View Source

    operator !=(Field, Field)

    Declaration
    public static bool operator !=(Field x, Field y)
    Parameters
    Type Name Description
    Field x
    Field y
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    IUrlParameter

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • Field(Expression, double?, string)
      • Field(PropertyInfo, double?, string)
      • Field(string, double?, string)
    • Properties
      • Boost
      • CachableExpression
      • Expression
      • Format
      • Name
      • Property
    • Methods
      • And(Field)
      • And(PropertyInfo, double?, string)
      • And(string, double?, string)
      • And<T>(Expression<Func<T, object>>, double?, string)
      • And<T, TValue>(Expression<Func<T, TValue>>, double?, string)
      • Equals(Field)
      • Equals(object)
      • GetHashCode()
      • ToString()
    • Operators
      • operator ==(Field, Field)
      • implicit operator Field(Expression)
      • implicit operator Field(PropertyInfo)
      • implicit operator Field(string)
      • operator !=(Field, Field)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX