#include <IncPassagePushIndex.hpp>
Inheritance diagram for IncPassagePushIndex:
Public Methods | |
IncPassagePushIndex (const string &prefix="DefaultIndex", int psgSize=50, int cachesize=128000000, long maxfilesize=2100000000) | |
IncPassagePushIndex (int psgSize) | |
virtual | ~IncPassagePushIndex () |
void | setPassageSize (int n) |
Set the number of terms per passage. | |
virtual bool | beginDoc (const DocumentProps *dp) |
the beginning of a new document, returns true if initiation was successful | |
virtual bool | addTerm (const Term &t) |
adding a term to the current document, returns true if term was added successfully. | |
virtual void | doendDoc (const DocumentProps *dp, int mgrid) |
signify the end of current document |
This class builds a incremental passage index assigning termids, docids, tracking locations of term within passages (stopwords not counted). Documents are segmented into passages of size passageSize
with an overlap of passageSize/2
terms per passage. It expects that all stopping and stemming (if any) occurs before the term is passed in.
|
|
|
|
|
|
|
adding a term to the current document, returns true if term was added successfully.
Reimplemented from InvFPPushIndex. |
|
the beginning of a new document, returns true if initiation was successful
Reimplemented from InvPushIndex. |
|
signify the end of current document
Reimplemented from InvFPPushIndex. |
|
Set the number of terms per passage.
|