#include <InvPassagePushIndex.hpp>
Inheritance diagram for InvPassagePushIndex:

Public Methods | |
| InvPassagePushIndex (const string &prefix, int psgSize=50, int cachesize=128000000, long maxfilesize=2100000000, DOCID_T startdocid=1) | |
| virtual | ~InvPassagePushIndex () |
| void | setPassageSize (int n) |
| set the value of passageSize to n. | |
| 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 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 value of passageSize to n.
|
1.2.18