A Filter that restricts search results to a range of values in a given field.

This filter 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 NumericRangeFilter} instead.

If you construct a large number of range filters with different ranges but on the same field, {@link FieldCacheRangeFilter} may have significantly better performance.

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

Syntax

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

Inheritance Hierarchy

See Also