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

QueryTextHandler Class Reference

#include <QueryTextHandler.hpp>

Inheritance diagram for QueryTextHandler:

TextHandler List of all members.

Public Methods

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

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


Private Attributes

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

QueryTextHandler::QueryTextHandler  
 


Member Function Documentation

char * QueryTextHandler::handleWord char *    word [virtual]
 

Handle a word, possibly transforming it.

Reimplemented from TextHandler.

void QueryTextHandler::setIndex Index   ind
 

Set the index used to check for acronyms.


Member Data Documentation

Index* 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 Fri Feb 6 07:12:06 2004 for LEMUR by doxygen1.2.16