Factory that creates a
CopyC#
NumericRangeFilter
, that filters a
CopyC#
long
range using the given
CopyC#
precisionStep
. 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 NumericRangeFilter NewLongRange(
	string field,
	int precisionStep,
	ValueType min,
	ValueType max,
	bool minInclusive,
	bool maxInclusive
)
Visual Basic
Public Shared Function NewLongRange ( _
	field As String, _
	precisionStep As Integer, _
	min As ValueType, _
	max As ValueType, _
	minInclusive As Boolean, _
	maxInclusive As Boolean _
) As NumericRangeFilter
Visual C++
public:
static NumericRangeFilter^ NewLongRange(
	String^ field, 
	int precisionStep, 
	ValueType^ min, 
	ValueType^ max, 
	bool minInclusive, 
	bool maxInclusive
)

Parameters

field
Type: System..::..String

[Missing <param name="field"/> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

precisionStep
Type: System..::..Int32

[Missing <param name="precisionStep"/> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

min
Type: System..::..ValueType

[Missing <param name="min"/> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

max
Type: System..::..ValueType

[Missing <param name="max"/> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

minInclusive
Type: System..::..Boolean

[Missing <param name="minInclusive"/> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

maxInclusive
Type: System..::..Boolean

[Missing <param name="maxInclusive"/> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.NumericRangeFilter.NewLongRange(System.String,System.Int32,System.ValueType,System.ValueType,System.Boolean,System.Boolean)"]

See Also