CLucene - a full-featured, c++ search engine
API Documentation


lucene::search::DateFilter Class Reference

A Filter that restricts search results to a range of time. More...

#include <DateFilter.h>

Inheritance diagram for lucene::search::DateFilter:

lucene::search::Filter

Public Member Functions

 ~DateFilter ()
 DateFilter (const TCHAR *f, int64_t from, int64_t to)
 Constructs a filter for field f matching times between from and to.
lucene::util::BitSetbits (lucene::index::IndexReader *reader)
 Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
Filterclone () const
TCHAR * toString ()

Static Public Member Functions

static DateFilterBefore (const TCHAR *field, int64_t time)
 Constructs a filter for field f matching times before time.
static DateFilterAfter (const TCHAR *field, int64_t time)
 Constructs a filter for field f matching times after time.

Protected Member Functions

 DateFilter (const DateFilter &copy)

Detailed Description

A Filter that restricts search results to a range of time.

For this to work, documents must have been indexed with a DateField.


Constructor & Destructor Documentation

lucene::search::DateFilter::DateFilter ( const DateFilter copy  )  [protected]

lucene::search::DateFilter::~DateFilter (  ) 

lucene::search::DateFilter::DateFilter ( const TCHAR *  f,
int64_t  from,
int64_t  to 
)

Constructs a filter for field f matching times between from and to.


Member Function Documentation

static DateFilter* lucene::search::DateFilter::Before ( const TCHAR *  field,
int64_t  time 
) [static]

Constructs a filter for field f matching times before time.

static DateFilter* lucene::search::DateFilter::After ( const TCHAR *  field,
int64_t  time 
) [static]

Constructs a filter for field f matching times after time.

lucene:: util ::BitSet* lucene::search::DateFilter::bits ( lucene::index::IndexReader reader  )  [virtual]

Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.

Implements lucene::search::Filter.

Filter* lucene::search::DateFilter::clone (  )  const [virtual]

TCHAR* lucene::search::DateFilter::toString (  )  [virtual]


The documentation for this class was generated from the following file:

clucene.sourceforge.net