Exemple #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;
        }
Exemple #2
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;
        }
Exemple #3
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;
        }
Exemple #4
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;
        }
Exemple #5
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;
        }
Exemple #6
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;
            }
        }