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; }
public Wildcard(Field field) { field.ThrowIfNull("field"); this.Field = field.Name; this.Value = field.Value; if (field.Boost.HasValue) this.Boost = field.Boost.Value; }
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; }
public Wildcard(Field field) { field.ThrowIfNull("field"); this.Field = field.Name; this.Value = field.Value; if (field.Boost.HasValue) { this.Boost = field.Boost.Value; } }