/// <summary> Factory that creates a <code>NumericRangeFilter</code>, that filters a <code>long</code> /// range using the given <a href="NumericRangeQuery.html#precisionStepDesc"><code>precisionStep</code></a>. /// You can have half-open ranges (which are in fact </≤ or >/≥ queries) /// by setting the min or max value to <code>null</code>. By setting inclusive to false, it will /// match all documents excluding the bounds, with inclusive on, the boundaries are hits, too. /// </summary> public static NumericRangeFilter NewLongRange(System.String field, int precisionStep, System.ValueType min, System.ValueType max, bool minInclusive, bool maxInclusive) { return(new NumericRangeFilter(NumericRangeQuery.NewLongRange(field, precisionStep, min, max, minInclusive, maxInclusive))); }
/// <summary> Factory that creates a <code>NumericRangeFilter</code>, that queries a <code>int</code> /// range using the default <code>precisionStep</code> {@link NumericUtils#PRECISION_STEP_DEFAULT} (4). /// You can have half-open ranges (which are in fact </≤ or >/≥ queries) /// by setting the min or max value to <code>null</code>. By setting inclusive to false, it will /// match all documents excluding the bounds, with inclusive on, the boundaries are hits, too. /// </summary> public static NumericRangeFilter NewIntRange(System.String field, System.ValueType min, System.ValueType max, bool minInclusive, bool maxInclusive) { return(new NumericRangeFilter(NumericRangeQuery.NewIntRange(field, min, max, minInclusive, maxInclusive))); }
private NumericRangeFilter(NumericRangeQuery query) : base(query) { }