Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::parse::QueryTextHandler Class Reference

#include <QueryTextHandler.hpp>

Inheritance diagram for lemur::parse::QueryTextHandler:

lemur::api::TextHandler List of all members.

Public Member Functions

 QueryTextHandler ()
char * handleWord (char *word)
 Handle a word, possibly transforming it.

void setIndex (const lemur::api::Index *ind)
 Set the index used to check for acronyms.


Private Attributes

const lemur::api::Indexindex
 The Index that will be used for acronym checking.


Detailed Description

The QueryTextHandler is designed to help parse queries.

The QueryTextHandler checks query terms against an Index and adds the uppercase form of the term to the query if it occurs more frequently than the parsed form passed to the QueryTextHandler. This is to help catch query terms that are acronyms but are not capitalized in the query.


Constructor & Destructor Documentation

lemur::parse::QueryTextHandler::QueryTextHandler  ) 
 


Member Function Documentation

char * lemur::parse::QueryTextHandler::handleWord char *  word  )  [virtual]
 

Handle a word, possibly transforming it.

Reimplemented from lemur::api::TextHandler.

void lemur::parse::QueryTextHandler::setIndex const lemur::api::Index ind  ) 
 

Set the index used to check for acronyms.


Member Data Documentation

const lemur::api::Index* lemur::parse::QueryTextHandler::index [private]
 

The Index that will be used for acronym checking.


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:06 2010 for Lemur by doxygen 1.3.4