private TsRank(double[] weights, TsVector tsVector, TsQuery tsQuery, FullTextNormalization?normalization) { this.AppendText("TS_RANK("); if (weights != null) { throw new NotImplementedException("weights != null is not yet implemented for TsRank"); } this.AppendFragment(tsVector) .AppendText(",") .AppendFragment(tsQuery); if (normalization != null) { this.AppendText(",") .AppendParameter((int)normalization.Value); } this.AppendText(")"); }
public TsRank(TsVector tsVector, TsQuery tsQuery) : this(null, tsVector, tsQuery, null) { }
public TsRank(TsVector tsVector, TsQuery tsQuery, FullTextNormalization normalization) : this(null, tsVector, tsQuery, normalization) { }
public TsRank(double[] weights, TsVector tsVector, TsQuery tsQuery, FullTextNormalization normalization) : this(weights, tsVector, tsQuery, (FullTextNormalization?)normalization) { }
public TsQuery(TsQuery tsQuery) { this.AppendFragment(tsQuery); }
public static WhereCondition Match(TsVector tsVector, TsQuery tsQuery) { return(new SqlBuilder.Conditions.SimpleComparison(tsVector, "@@", tsQuery)); }