Constructs a query selecting all terms greater than
CopyC#
lowerTerm
but less than
CopyC#
upperTerm
. There must be at least one term and either term may be null, in which case there is no bound on that side, but if there are two terms, both terms must be for the same field.

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

Syntax

C#
public RangeQuery(
	Term lowerTerm,
	Term upperTerm,
	bool inclusive
)
Visual Basic
Public Sub New ( _
	lowerTerm As Term, _
	upperTerm As Term, _
	inclusive As Boolean _
)
Visual C++
public:
RangeQuery(
	Term^ lowerTerm, 
	Term^ upperTerm, 
	bool inclusive
)

Parameters

lowerTerm
Type: Lucene.Net.Index..::..Term
The Term at the lower end of the range
upperTerm
Type: Lucene.Net.Index..::..Term
The Term at the upper end of the range
inclusive
Type: System..::..Boolean
If true, both
CopyC#
lowerTerm
and
CopyC#
upperTerm
will themselves be included in the range.

See Also