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

PropIndexTH Class Reference

#include <PropIndexTH.hpp>

Inheritance diagram for PropIndexTH:

TextHandler List of all members.

Public Methods

 PropIndexTH ()
 PropIndexTH (const string &filename, int bufferSize, bool countStopWds=false, int ind=1)
 PropIndexTH (const string &filename, int bufferSize, bool countStopWds, string ind)
 ~PropIndexTH ()
char * handleDoc (char *docno)
 Pushes the doc into the InvFPPushIndex.

char * handleWord (char *word, const char *original, PropertyList *list)
 Pushes the word into the InvFPPushIndex.

void setDocManager (const string &mgrID)
 passes mgrID onto index


Protected Methods

void endDoc ()
 Ends a document in the collection.


Protected Attributes

PushIndexindex
 The indexer.

DocumentPropsdp
 Document properties object to be reused over repeated calls.

InvFPTermterm
 Term object to be reused over repeated calls.

int docLength
 Keeps track of document length.

bool countStopWds
 Indicates whether or not to count stop words in doc length.

bool first

Detailed Description

PropIndexTH builds a positional indexer. This class is a destination TextHandler. It expects the position of the token to be given (not counted) and will index certain properties if passed in the PropertyList. PropertyList *must* have one property called "position" with the token position. Any and ALL other properties of type STRING will be indexed at the same position as the token, but added after the token. This is usually the last object in TextHandler chain. If a property should NOT be indexed, remove it before it gets here.


Constructor & Destructor Documentation

PropIndexTH::PropIndexTH   [inline]
 

PropIndexTH::PropIndexTH const string &    filename,
int    bufferSize,
bool    countStopWds = false,
int    ind = 1
 

Create a PropIndexTH with index name filename (minus the .ifp extension) and specified buffer size.

PropIndexTH::PropIndexTH const string &    filename,
int    bufferSize,
bool    countStopWds,
string    ind
 

PropIndexTH::~PropIndexTH  
 


Member Function Documentation

void PropIndexTH::endDoc   [protected]
 

Ends a document in the collection.

char * PropIndexTH::handleDoc char *    docno [virtual]
 

Pushes the doc into the InvFPPushIndex.

Reimplemented from TextHandler.

char * PropIndexTH::handleWord char *    word,
const char *    original,
PropertyList   list
[virtual]
 

Pushes the word into the InvFPPushIndex.

Reimplemented from TextHandler.

void PropIndexTH::setDocManager const string &    mgrID
 

passes mgrID onto index


Member Data Documentation

bool PropIndexTH::countStopWds [protected]
 

Indicates whether or not to count stop words in doc length.

int PropIndexTH::docLength [protected]
 

Keeps track of document length.

DocumentProps* PropIndexTH::dp [protected]
 

Document properties object to be reused over repeated calls.

bool PropIndexTH::first [protected]
 

Indicates whether object is before first doc true = yes, false = foundDoc has been called once.

PushIndex* PropIndexTH::index [protected]
 

The indexer.

InvFPTerm* PropIndexTH::term [protected]
 

Term object to be reused over repeated calls.


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