CLucene - a full-featured, c++ search engine
API Documentation
#include <TermInfosWriter.h>
Public Member Functions | |
| LUCENE_STATIC_CONSTANT (int32_t, FORMAT=-2) | |
| The file format version, a negative number. | |
| TermInfosWriter (lucene::store::Directory *directory, const char *segment, FieldInfos *fis, int32_t interval) | |
| ~TermInfosWriter () | |
| void | add (Term *term, const TermInfo *ti) |
| Adds a new <Term, TermInfo> pair to the set. | |
| void | close () |
| Called to complete TermInfos creation. | |
Public Attributes | |
| int32_t | indexInterval |
| Expert: The fraction of terms in the "dictionary" which should be stored in RAM. | |
| int32_t | skipInterval |
| Expert: The fraction of TermDocs entries stored in skip tables, used to accellerate TermDocs#SkipTo(int32_t). | |
| lucene::index::TermInfosWriter::TermInfosWriter | ( | lucene::store::Directory * | directory, | |
| const char * | segment, | |||
| FieldInfos * | fis, | |||
| int32_t | interval | |||
| ) |
| lucene::index::TermInfosWriter::~TermInfosWriter | ( | ) |
| void lucene::index::TermInfosWriter::close | ( | ) |
Called to complete TermInfos creation.
| lucene::index::TermInfosWriter::LUCENE_STATIC_CONSTANT | ( | int32_t | , | |
| FORMAT | = -2 | |||
| ) |
The file format version, a negative number.
Expert: The fraction of terms in the "dictionary" which should be stored in RAM.
Smaller values use more memory, but make searching slightly faster, while larger values use less memory and make searching slightly slower. Searching is typically not dominated by dictionary lookup, so tweaking this is rarely useful.
Expert: The fraction of TermDocs entries stored in skip tables, used to accellerate TermDocs#SkipTo(int32_t).
Larger values result in smaller indexes, greater acceleration, but fewer accelerable cases, while smaller values result in bigger indexes, less acceleration and more accelerable cases. More detailed experiments would be useful here.