compose static method
Composes and returns an FTS NEAR group.
Implementation
@protected
static String compose(List<FtsP> phrases, int n) {
checkState(
phrases.length >= 2,
message: () =>
"FtsNear.compose: expected at least 2 phrases, got ${phrases.length}",
);
var joined = phrases.map((var p) => p.str).join(" ");
var suffix = n >= 0 ? ", $n" : "";
return "NEAR($joined$suffix)";
}