# Class NpgsqlTsQueryLexeme

Namespace
  NpgsqlTypes

Assembly
  Npgsql.dll

TsQuery Lexeme node.

    public sealed class NpgsqlTsQueryLexeme : NpgsqlTsQuery, IEquatable<NpgsqlTsQuery>

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.ReferenceEquals(object, object)

## Constructors

### NpgsqlTsQueryLexeme(string)

Creates a tsquery lexeme with only lexeme text.

    public NpgsqlTsQueryLexeme(string text)

#### Parameters

`text` string

  Lexeme text.

### NpgsqlTsQueryLexeme(string, Weight)

Creates a tsquery lexeme with lexeme text and weights.

    public NpgsqlTsQueryLexeme(string text, NpgsqlTsQueryLexeme.Weight weights)

#### Parameters

`text` string

  Lexeme text.

`weights` NpgsqlTsQueryLexeme.Weight

  Bitmask of enum Weight.

### NpgsqlTsQueryLexeme(string, Weight, bool)

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

    public NpgsqlTsQueryLexeme(string text, NpgsqlTsQueryLexeme.Weight weights, bool isPrefixSearch)

#### Parameters

`text` string

  Lexeme text.

`weights` NpgsqlTsQueryLexeme.Weight

  Bitmask of enum Weight.

`isPrefixSearch` bool

  Is prefix search?

## Properties

### IsPrefixSearch

Prefix search.

    public bool IsPrefixSearch { get; set; }

#### Property Value

bool

### Text

Lexeme text.

    public string Text { get; set; }

#### Property Value

string

### Weights

Weights is a bitmask of the Weight enum.

    public NpgsqlTsQueryLexeme.Weight Weights { get; set; }

#### Property Value

NpgsqlTsQueryLexeme.Weight

## Methods

### Equals(NpgsqlTsQuery?)

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

    public override bool Equals(NpgsqlTsQuery? other)

#### Parameters

`other` NpgsqlTsQuery

  An object to compare to this instance.

#### Returns

bool

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

### GetHashCode()

Serves as the default hash function.

    public override int GetHashCode()

#### Returns

int

  A hash code for the current object.