Overload List

  NameDescription
Public methodRangeQuery(Term, Term, Boolean)
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.
Public methodRangeQuery(Term, Term, Boolean, CompareInfo)
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.

If

CopyC#
collator
is not null, it will be used to decide whether index terms are within the given range, rather than using the Unicode code point order in which index terms are stored.

WARNING: Using this constructor and supplying a non-null value in the

CopyC#
collator
parameter will cause every single index Term in the Field referenced by lowerTerm and/or upperTerm to be examined. Depending on the number of index Terms in this Field, the operation could be very slow.

See Also