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