PgTsQueryItem
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Holds one item of a tsquery in stored prefix order: a lexeme operand or an operator.
public sealed class PgTsQueryItemInheritance: object
Properties
Section titled “Properties”Distance
Section titled “Distance”Gets a Phrase operator’s distance, or zero for another item.
public ushort Distance { get; }Value: ushort
IsOperand
Section titled “IsOperand”Gets whether this item is a lexeme operand.
public bool IsOperand { get; }Value: bool
IsPrefix
Section titled “IsPrefix”Gets whether an operand matches every lexeme it begins, as ‘word’:* does.
public bool IsPrefix { get; }Value: bool
Operand
Section titled “Operand”Gets the operand’s lexeme, or null for an operator.
public string? Operand { get; }Value: string
Operator
Section titled “Operator”Gets the operator, or null for an operand.
public PgTsOperator? Operator { get; }Value: PgTsOperator?
Weights
Section titled “Weights”Gets the labels an operand’s positions must have, or None for any.
public PgTsWeights Weights { get; }Value: PgTsWeights