#include <IndriTextHandler.hpp>
Inheritance diagram for IndriTextHandler:
Public Methods | |
IndriTextHandler (const string &name, int memory, const Parser *p) | |
~IndriTextHandler () | |
char * | handleDoc (char *docno) |
Signal the start of a document. | |
void | handleEndDoc () |
Handle end of document. | |
char * | handleWord (char *word, const char *original, PropertyList *list) |
Handles a word to be indexed. | |
char * | handleBeginTag (char *tag, const char *orig, PropertyList *props) |
Handle a begin tag. | |
char * | handleEndTag (char *tag, const char *orig, PropertyList *props) |
Handle an end tag. | |
Protected Attributes | |
IndexEnvironment | env |
The indexer. | |
ParsedDocument | document |
Document properties object to be reused over repeated calls. | |
MetadataPair | docid |
Handle the document id. | |
char * | curdocno |
the current document id | |
char * | docsource |
Document buffer. | |
int | bufsize |
buffer size; | |
int | docbegin |
the beginning byte offset into file of this documents | |
const Parser * | parser |
We need a handle to the parser to get file byte locations. |
|
Create an IndriIndex (repository) with the given name Pass in the parser being used at the beginning of the chain |
|
|
|
Handle a begin tag.
Reimplemented from TextHandler. |
|
Signal the start of a document.
Reimplemented from TextHandler. |
|
Handle end of document.
Reimplemented from TextHandler. |
|
Handle an end tag.
Reimplemented from TextHandler. |
|
Handles a word to be indexed.
Reimplemented from TextHandler. |
|
buffer size;
|
|
the current document id
|
|
the beginning byte offset into file of this documents
|
|
Handle the document id.
|
|
Document buffer.
|
|
Document properties object to be reused over repeated calls.
|
|
The indexer.
|
|
We need a handle to the parser to get file byte locations.
|