Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
 public Fuzzy(Field field)
     : this(field, 0.5, 0)
 {
 }