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

Public Methods | |
| IncPassagePushIndex (char *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 (DocumentProps *dp) |
| the beginning of a new document, returns true if initiation was successful | |
| virtual bool | addTerm (Term &t) |
| adding a term to the current document, returns true if term was added successfully. | |
| virtual void | doendDoc (DocumentProps *dp, int mgrid) |
| signify the end of current document | |
Private Attributes | |
| int | passageSize |
| size of passages, in terms. | |
| int | passageEnd |
| passageSize/2 for overlapping passages. | |
| int | psgCounter |
| number of passages so far this document. | |
| DocumentProps * | curDoc |
| the current document | |
| char * | curDocName |
| the current document name | |
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.
|
|
|
the current document
|
|
|
the current document name
|
|
|
passageSize/2 for overlapping passages.
|
|
|
size of passages, in terms.
|
|
|
number of passages so far this document.
|
1.2.16