예제 #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 TsQuery(TsQuery tsQuery)
 {
     this.AppendFragment(tsQuery);
 }
예제 #6
0
 public static WhereCondition Match(TsVector tsVector, TsQuery tsQuery)
 {
     return(new SqlBuilder.Conditions.SimpleComparison(tsVector, "@@", tsQuery));
 }