示例#1
0
        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(")");
        }
示例#2
0
 public TsRank(TsVector tsVector, TsQuery tsQuery)
     : this(null, tsVector, tsQuery, null)
 {
 }
示例#3
0
 public TsRank(TsVector tsVector, TsQuery tsQuery, FullTextNormalization normalization)
     : this(null, tsVector, tsQuery, normalization)
 {
 }
示例#4
0
 public TsRank(double[] weights, TsVector tsVector, TsQuery tsQuery, FullTextNormalization normalization)
     : this(weights, tsVector, tsQuery, (FullTextNormalization?)normalization)
 {
 }
示例#5
0
 public static WhereCondition Match(TsVector tsVector, TsQuery tsQuery)
 {
     return(new SqlBuilder.Conditions.SimpleComparison(tsVector, "@@", tsQuery));
 }
示例#6
0
 public static WhereCondition Match(TsVector tsVector, string configuration, string queryString, bool isColumn)
 {
     return(Match(tsVector, new TsQuery(configuration, queryString, !isColumn)));
 }