示例#1
0
文件: Prefix.cs 项目: baranov1ch/NEST
        public Prefix(Field field)
        {
            field.ThrowIfNull("field");

            this.Field = field.Name;
            this.Value = field.Value;
            this.Boost = (field.Boost.HasValue) ? field.Boost.Value : 1.0;
        }
示例#2
0
        public Wildcard(Field field)
        {
            field.ThrowIfNull("field");

            this.Field = field.Name;
            this.Value = field.Value;
            if (field.Boost.HasValue)
                this.Boost = field.Boost.Value;
        }
示例#3
0
文件: Fuzzy.cs 项目: EFJoseph/NEST
        public Fuzzy(Field field, double similarityScore, int prefixLength)
        {
            field.ThrowIfNull("field");

            this.Field = field.Name;
            this.Value = field.Value;
            this.Boost = (field.Boost.HasValue) ? field.Boost.Value : 1.0;
            this.SimilarityScore = similarityScore;
            this.PrefixLength = prefixLength;
        }
示例#4
0
文件: Fuzzy.cs 项目: EFJoseph/NEST
 public Fuzzy(Field field)
     : this(field, 0.5, 0)
 {
 }