CLucene - a full-featured, c++ search engine
API Documentation
#include <SearchHeader.h>
Public Member Functions | |
| Hits (Searcher *s, Query *q, Filter *f, const Sort *sort=NULL) | |
| ~Hits () | |
| int32_t | length () const |
| Returns the total number of hits available in this set. | |
| lucene::document::Document & | doc (const int32_t n) |
| Returns the stored fields of the nth document in this set. | |
| int32_t | id (const int32_t n) |
| Returns the id for the nth document in this set. | |
| float_t | score (const int32_t n) |
| Returns the score for the nth document in this set. | |
| lucene::search::Hits::~Hits | ( | ) |
| lucene:: document ::Document& lucene::search::Hits::doc | ( | const int32_t | n | ) |
Returns the stored fields of the nth document in this set.
Documents are cached, so that repeated requests for the same element may return the same Document object.
| int32_t lucene::search::Hits::id | ( | const int32_t | n | ) |
Returns the id for the nth document in this set.
| int32_t lucene::search::Hits::length | ( | ) | const |
Returns the total number of hits available in this set.
| float_t lucene::search::Hits::score | ( | const int32_t | n | ) |
Returns the score for the nth document in this set.