Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

InvPassagePushIndex Class Reference

Passage push index. More...

#include <InvPassagePushIndex.hpp>

Inheritance diagram for InvPassagePushIndex:

InvFPPushIndex InvPushIndex PushIndex List of all members.

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


Detailed Description

Passage push index.

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.


Constructor & Destructor Documentation

InvPassagePushIndex::InvPassagePushIndex const string &    prefix,
int    psgSize = 50,
int    cachesize = 128000000,
long    maxfilesize = 2100000000,
DOCID_T    startdocid = 1
 

InvPassagePushIndex::~InvPassagePushIndex   [virtual]
 


Member Function Documentation

bool InvPassagePushIndex::addTerm const Term   t [virtual]
 

adding a term to the current document, returns true if term was added successfully.

Reimplemented from InvFPPushIndex.

bool InvPassagePushIndex::beginDoc const DocumentProps   dp [virtual]
 

the beginning of a new document, returns true if initiation was successful

Reimplemented from InvPushIndex.

void InvPassagePushIndex::doendDoc const DocumentProps   dp,
int    mgrid
[virtual]
 

signify the end of current document

Reimplemented from InvFPPushIndex.

void InvPassagePushIndex::setPassageSize int    n
 

set the value of passageSize to n.


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:41 2004 for Lemur Toolkit by doxygen1.2.18