Class: Ferret::Search::RangeFilter

Inherits:
Object
  • Object
show all
Defined in:
ext/r_search.c

Overview

Summary

RangeFilter filters a set of documents which contain a lexicographical range of terms (ie “aaa”, “aab”, “aac”, etc). See also RangeQuery

Example

Find all documents created before 5th of September 2002.

filter = RangeFilter.new(:created_on, :< => "20020905")

Number fields

See RangeQuery for notes on how to use the RangeFilter on a field containing numbers.