Class NpgsqlTsQueryLexeme
TsQuery Lexeme node.
Inherited Members
Namespace: NpgsqlTypes
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlTsQueryLexeme : NpgsqlTsQuery
Constructors
| Improve this Doc View SourceNpgsqlTsQueryLexeme(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? |
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. |
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 SourceIsPrefixSearch
Prefix search.
Declaration
public bool IsPrefixSearch { get; set; }
Property Value
Type | Description |
---|---|
bool |
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
| Improve this Doc View SourceEquals(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
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |