A Query that matches documents within an exclusive range of terms.

This query matches the documents looking for terms that fall into the supplied range according to {@link String#compareTo(String)}. It is not intended for numerical ranges, use {@link NumericRangeQuery} instead.

This query uses the {@link MultiTermQuery#CONSTANT_SCORE_AUTO_REWRITE_DEFAULT} rewrite method.

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

Syntax

C#
[SerializableAttribute]
public class TermRangeQuery : MultiTermQuery
Visual Basic
<SerializableAttribute> _
Public Class TermRangeQuery _
	Inherits MultiTermQuery
Visual C++
[SerializableAttribute]
public ref class TermRangeQuery : public MultiTermQuery

Inheritance Hierarchy

See Also