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