Factory that creates a
CopyC#
NumericRangeQuery
, that queries a
CopyC#
double
range using the default
CopyC#
precisionStep
{@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
CopyC#
null
. By setting inclusive to false, it will match all documents excluding the bounds, with inclusive on, the boundaries are hits, too.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static NumericRangeQuery NewDoubleRange(
	string field,
	double min,
	double max,
	bool minInclusive,
	bool maxInclusive
)
Visual Basic
Public Shared Function NewDoubleRange ( _
	field As String, _
	min As Double, _
	max As Double, _
	minInclusive As Boolean, _
	maxInclusive As Boolean _
) As NumericRangeQuery
Visual C++
public:
static NumericRangeQuery^ NewDoubleRange(
	String^ field, 
	double min, 
	double max, 
	bool minInclusive, 
	bool maxInclusive
)

Parameters

field
Type: System..::..String

[Missing <param name="field"/> documentation for "M:Lucene.Net.Search.NumericRangeQuery.NewDoubleRange(System.String,System.Double,System.Double,System.Boolean,System.Boolean)"]

min
Type: System..::..Double

[Missing <param name="min"/> documentation for "M:Lucene.Net.Search.NumericRangeQuery.NewDoubleRange(System.String,System.Double,System.Double,System.Boolean,System.Boolean)"]

max
Type: System..::..Double

[Missing <param name="max"/> documentation for "M:Lucene.Net.Search.NumericRangeQuery.NewDoubleRange(System.String,System.Double,System.Double,System.Boolean,System.Boolean)"]

minInclusive
Type: System..::..Boolean

[Missing <param name="minInclusive"/> documentation for "M:Lucene.Net.Search.NumericRangeQuery.NewDoubleRange(System.String,System.Double,System.Double,System.Boolean,System.Boolean)"]

maxInclusive
Type: System..::..Boolean

[Missing <param name="maxInclusive"/> documentation for "M:Lucene.Net.Search.NumericRangeQuery.NewDoubleRange(System.String,System.Double,System.Double,System.Boolean,System.Boolean)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.NumericRangeQuery.NewDoubleRange(System.String,System.Double,System.Double,System.Boolean,System.Boolean)"]

See Also