Beispiel #1
0
        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;
        }
Beispiel #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;
        }
Beispiel #3
0
        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;
        }
Beispiel #4
0
 public Fuzzy(Field field)
     : this(field, 0.5, 0)
 {
 }