Table of Contents

Method BuildMatchExpression

Namespace
Qavren.Edge.VectorData
Assembly
Qavren.Edge.VectorData.dll

BuildMatchExpression(ICollection<string>, KeywordCombinator, string?)

Quotes each keyword as an FTS5 string literal, doubling any embedded quote, and joins them. Quoting is what makes FTS5 treat a token as a phrase, so AND, OR, NOT, NEAR, *, ^, : and parentheses inside a keyword are inert rather than operators. This is the package's one injection surface.

public static string BuildMatchExpression(ICollection<string> keywords, KeywordCombinator combinator, string? columnFilter = null)

Parameters

keywords ICollection<string>

The keywords. At least one.

combinator KeywordCombinator

How they are joined.

columnFilter string

Optional FTS5 column filter, e.g. Body.

Returns

string

The MATCH expression.