Apache Lucene.Net 2.4.0 Class Library API

RangeQuery Constructor (Term, Term, Boolean)

Constructs a query selecting all terms greater than

lowerTerm
but less than
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 RangeQuery(
   Term lowerTerm,
   Term upperTerm,
   bool inclusive
);

Parameters

lowerTerm
term at the lower end of the range
upperTerm
term at the upper end of the range
inclusive
if true, both lowerTerm and upperTerm will be included in the range

See Also

RangeQuery Class | Lucene.Net.Search Namespace | RangeQuery Constructor Overload List