Class NpgsqlTsQueryLexeme
- Namespace
- NpgsqlTypes
- Assembly
- Npgsql.dll
TsQuery Lexeme node.
public sealed class NpgsqlTsQueryLexeme : NpgsqlTsQuery, IEquatable<NpgsqlTsQuery>
- Inheritance
-
NpgsqlTsQueryLexeme
- Implements
- Inherited Members
Constructors
NpgsqlTsQueryLexeme(string)
Creates a tsquery lexeme with only lexeme text.
public NpgsqlTsQueryLexeme(string text)
Parameters
text
stringLexeme text.
NpgsqlTsQueryLexeme(string, Weight)
Creates a tsquery lexeme with lexeme text and weights.
public NpgsqlTsQueryLexeme(string text, NpgsqlTsQueryLexeme.Weight weights)
Parameters
text
stringLexeme text.
weights
NpgsqlTsQueryLexeme.WeightBitmask 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
stringLexeme text.
weights
NpgsqlTsQueryLexeme.WeightBitmask of enum Weight.
isPrefixSearch
boolIs prefix search?
Properties
IsPrefixSearch
Prefix search.
public bool IsPrefixSearch { get; set; }
Property Value
Text
Lexeme text.
public string Text { get; set; }
Property Value
Weights
Weights is a bitmask of the Weight enum.
public NpgsqlTsQueryLexeme.Weight Weights { get; set; }
Property Value
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
NpgsqlTsQueryAn object to compare to this instance.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.