Enumerates all terms greater/equal than
CopyC#
lowerTerm
but less/equal than
CopyC#
upperTerm
. If an endpoint is null, it is said to be "open". Either or both endpoints may be open. Open endpoints may not be exclusive (you can't select all but the first or last term without explicitly specifying the term to exclude.)

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

Syntax

C#
public TermRangeTermEnum(
	IndexReader reader,
	string field,
	string lowerTermText,
	string upperTermText,
	bool includeLower,
	bool includeUpper,
	CompareInfo collator
)
Visual Basic
Public Sub New ( _
	reader As IndexReader, _
	field As String, _
	lowerTermText As String, _
	upperTermText As String, _
	includeLower As Boolean, _
	includeUpper As Boolean, _
	collator As CompareInfo _
)
Visual C++
public:
TermRangeTermEnum(
	IndexReader^ reader, 
	String^ field, 
	String^ lowerTermText, 
	String^ upperTermText, 
	bool includeLower, 
	bool includeUpper, 
	CompareInfo^ collator
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader

[Missing <param name="reader"/> documentation for "M:Lucene.Net.Search.TermRangeTermEnum.#ctor(Lucene.Net.Index.IndexReader,System.String,System.String,System.String,System.Boolean,System.Boolean,System.Globalization.CompareInfo)"]

field
Type: System..::..String
An interned field that holds both lower and upper terms.
lowerTermText
Type: System..::..String
The term text at the lower end of the range
upperTermText
Type: System..::..String
The term text at the upper end of the range
includeLower
Type: System..::..Boolean
If true, the
CopyC#
lowerTerm
is included in the range.
includeUpper
Type: System..::..Boolean
If true, the
CopyC#
upperTerm
is included in the range.
collator
Type: System.Globalization..::..CompareInfo
The collator to use to collate index Terms, to determine their membership in the range bounded by
CopyC#
lowerTerm
and
CopyC#
upperTerm
.

See Also