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
keywordsICollection<string>The keywords. At least one.
combinatorKeywordCombinatorHow they are joined.
columnFilterstringOptional FTS5 column filter, e.g.
Body.
Returns
- string
The MATCH expression.