Skip to content

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 PgTsQueryItem

Inheritance: object

Gets a Phrase operator’s distance, or zero for another item.

public ushort Distance { get; }

Value: ushort

Gets whether this item is a lexeme operand.

public bool IsOperand { get; }

Value: bool

Gets whether an operand matches every lexeme it begins, as ‘word’:* does.

public bool IsPrefix { get; }

Value: bool

Gets the operand’s lexeme, or null for an operator.

public string? Operand { get; }

Value: string

Gets the operator, or null for an operand.

public PgTsOperator? Operator { get; }

Value: PgTsOperator?

Gets the labels an operand’s positions must have, or None for any.

public PgTsWeights Weights { get; }

Value: PgTsWeights