Search Results for

    Show / Hide Table of Contents

    Class NpgsqlTsQueryLexeme

    TsQuery Lexeme node.

    Inheritance
    object
    NpgsqlTsQuery
    NpgsqlTsQueryLexeme
    Inherited Members
    NpgsqlTsQuery.Kind
    NpgsqlTsQuery.Write(StringBuilder)
    NpgsqlTsQuery.ToString()
    NpgsqlTsQuery.Parse(string)
    NpgsqlTsQuery.Equals(object?)
    Namespace: NpgsqlTypes
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlTsQueryLexeme : NpgsqlTsQuery

    Constructors

    | Improve this Doc View Source

    NpgsqlTsQueryLexeme(string, Weight, bool)

    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.

    bool isPrefixSearch

    Is prefix search?

    | Improve this Doc View Source

    NpgsqlTsQueryLexeme(string, 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.

    | Improve this Doc View Source

    NpgsqlTsQueryLexeme(string)

    Creates a tsquery lexeme with only lexeme text.

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

    Lexeme text.

    Properties

    | Improve this Doc View Source

    IsPrefixSearch

    Prefix search.

    Declaration
    public bool IsPrefixSearch { get; set; }
    Property Value
    Type Description
    bool
    | Improve this Doc View Source

    Text

    Lexeme text.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    string
    | Improve this Doc View Source

    Weights

    Weights is a bitmask of the Weight enum.

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

    Methods

    | Improve this Doc View Source

    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
    bool

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

    Overrides
    NpgsqlTsQuery.Equals(NpgsqlTsQuery?)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    NpgsqlTsQuery.GetHashCode()
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team