CLucene - a full-featured, c++ search engine
API Documentation
#include <DateFilter.h>
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::BitSet * | bits (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. | |
Filter * | clone () const |
TCHAR * | toString () |
Static Public Member Functions | |
static DateFilter * | Before (const TCHAR *field, int64_t time) |
Constructs a filter for field f matching times before time . | |
static DateFilter * | After (const TCHAR *field, int64_t time) |
Constructs a filter for field f matching times after time . | |
Protected Member Functions | |
DateFilter (const DateFilter ©) |
For this to work, documents must have been indexed with a DateField.
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
.
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] |
Implements lucene::search::Filter.
TCHAR* lucene::search::DateFilter::toString | ( | ) | [virtual] |
Implements lucene::search::Filter.