Search Results for

    Show / Hide Table of Contents

    Class NpgsqlTsQueryLexeme

    TsQuery Lexeme node.

    Inheritance
    Object
    NpgsqlTsQuery
    NpgsqlTsQueryLexeme
    Implements
    IEquatable<NpgsqlTsQuery>
    Inherited Members
    NpgsqlTsQuery.Kind
    NpgsqlTsQuery.Write(StringBuilder)
    NpgsqlTsQuery.ToString()
    NpgsqlTsQuery.Parse(String)
    NpgsqlTsQuery.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: NpgsqlTypes
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlTsQueryLexeme : NpgsqlTsQuery, IEquatable<NpgsqlTsQuery>

    Constructors

    NpgsqlTsQueryLexeme(String)

    Creates a tsquery lexeme with only lexeme text.

    Declaration
    public NpgsqlTsQueryLexeme(string text)
    Parameters
    Type Name Description
    String text

    Lexeme text.

    NpgsqlTsQueryLexeme(String, NpgsqlTsQueryLexeme.Weight)

    Creates a tsquery lexeme with lexeme text and weights.

    Declaration
    public NpgsqlTsQueryLexeme(string text, NpgsqlTsQueryLexeme.Weight weights)
    Parameters
    Type Name Description
    String text

    Lexeme text.

    NpgsqlTsQueryLexeme.Weight weights

    Bitmask of enum Weight.

    NpgsqlTsQueryLexeme(String, NpgsqlTsQueryLexeme.Weight, Boolean)

    Creates a tsquery lexeme with lexeme text, weights and prefix search flag.

    Declaration
    public NpgsqlTsQueryLexeme(string text, NpgsqlTsQueryLexeme.Weight weights, bool isPrefixSearch)
    Parameters
    Type Name Description
    String text

    Lexeme text.

    NpgsqlTsQueryLexeme.Weight weights

    Bitmask of enum Weight.

    Boolean isPrefixSearch

    Is prefix search?

    Properties

    IsPrefixSearch

    Prefix search.

    Declaration
    public bool IsPrefixSearch { get; set; }
    Property Value
    Type Description
    Boolean

    Text

    Lexeme text.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    String

    Weights

    Weights is a bitmask of the Weight enum.

    Declaration
    public NpgsqlTsQueryLexeme.Weight Weights { get; set; }
    Property Value
    Type Description
    NpgsqlTsQueryLexeme.Weight

    Methods

    Equals(NpgsqlTsQuery)

    Returns a value indicating whether this instance and a specified NpgsqlTsQuery object represent the same value.

    Declaration
    public override bool Equals(NpgsqlTsQuery other)
    Parameters
    Type Name Description
    NpgsqlTsQuery other

    An object to compare to this instance.

    Returns
    Type Description
    Boolean

    true if g is equal to this instance; otherwise, false.

    Overrides
    NpgsqlTsQuery.Equals(NpgsqlTsQuery)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    NpgsqlTsQuery.GetHashCode()

    Implements

    System.IEquatable<T>
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team