Class NpgsqlTsQueryLexeme
TsQuery Lexeme node.
Implements
Inherited Members
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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |