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

indri::server::LocalQueryServer Class Reference

#include <LocalQueryServer.hpp>

Inheritance diagram for indri::server::LocalQueryServer:

indri::server::QueryServer List of all members.

Public Member Functions

 LocalQueryServer (indri::collection::Repository &repository)
QueryServerResponserunQuery (std::vector< indri::lang::Node * > &roots, int resultsRequested, bool optimize)
indri::api::ParsedDocumentdocument (lemur::api::DOCID_T documentID)
std::string documentMetadatum (lemur::api::DOCID_T documentID, const std::string &attributeName)
QueryServerDocumentIDsResponsedocumentIDsFromMetadata (const std::string &attributeName, const std::vector< std::string > &attributeValues)
QueryServerDocumentsResponsedocumentsFromMetadata (const std::string &attributeName, const std::vector< std::string > &attributeValues)
QueryServerDocumentsResponsedocuments (const std::vector< lemur::api::DOCID_T > &documentIDs)
QueryServerMetadataResponsedocumentMetadata (const std::vector< lemur::api::DOCID_T > &documentIDs, const std::string &attributeName)
QueryServerMetadataResponsepathNames (const std::vector< lemur::api::DOCID_T > &documentIDs, const std::vector< int > &pathBegins, const std::vector< int > &pathEnds)
INT64 termCount ()
INT64 termCount (const std::string &term)
INT64 stemCount (const std::string &stem)
std::string termName (lemur::api::TERMID_T term)
lemur::api::TERMID_T termID (const std::string &term)
std::vector< std::string > fieldList ()
INT64 termFieldCount (const std::string &term, const std::string &field)
INT64 stemFieldCount (const std::string &stem, const std::string &field)
int documentLength (lemur::api::DOCID_T documentID)
INT64 documentCount ()
INT64 documentCount (const std::string &term)
INT64 documentStemCount (const std::string &term)
QueryServerVectorsResponsedocumentVectors (const std::vector< lemur::api::DOCID_T > &documentIDs)
void setMaxWildcardTerms (int maxTerms)
 sets the maximum number of terms to be generated for a wildcard term. If the synonym list is greater than this, an exception will be thrown


Private Member Functions

indri::index::Index_indexWithDocument (indri::collection::Repository::index_state &state, lemur::api::DOCID_T documentID)

Private Attributes

bool _optimizeParameter
indri::collection::Repository_repository
indri::lang::ListCache _cache
int _maxWildcardMatchesPerTerm

Constructor & Destructor Documentation

indri::server::LocalQueryServer::LocalQueryServer indri::collection::Repository repository  ) 
 


Member Function Documentation

indri::index::Index * indri::server::LocalQueryServer::_indexWithDocument indri::collection::Repository::index_state state,
lemur::api::DOCID_T  documentID
[private]
 

indri::api::ParsedDocument * indri::server::LocalQueryServer::document lemur::api::DOCID_T  documentID  ) 
 

INT64 indri::server::LocalQueryServer::documentCount const std::string &  term  )  [virtual]
 

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::documentCount  )  [virtual]
 

Implements indri::server::QueryServer.

indri::server::QueryServerDocumentIDsResponse * indri::server::LocalQueryServer::documentIDsFromMetadata const std::string &  attributeName,
const std::vector< std::string > &  attributeValues
[virtual]
 

Implements indri::server::QueryServer.

int indri::server::LocalQueryServer::documentLength lemur::api::DOCID_T  documentID  )  [virtual]
 

Implements indri::server::QueryServer.

indri::server::QueryServerMetadataResponse * indri::server::LocalQueryServer::documentMetadata const std::vector< lemur::api::DOCID_T > &  documentIDs,
const std::string &  attributeName
[virtual]
 

Implements indri::server::QueryServer.

std::string indri::server::LocalQueryServer::documentMetadatum lemur::api::DOCID_T  documentID,
const std::string &  attributeName
 

indri::server::QueryServerDocumentsResponse * indri::server::LocalQueryServer::documents const std::vector< lemur::api::DOCID_T > &  documentIDs  )  [virtual]
 

Implements indri::server::QueryServer.

indri::server::QueryServerDocumentsResponse * indri::server::LocalQueryServer::documentsFromMetadata const std::string &  attributeName,
const std::vector< std::string > &  attributeValues
[virtual]
 

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::documentStemCount const std::string &  term  )  [virtual]
 

Implements indri::server::QueryServer.

indri::server::QueryServerVectorsResponse * indri::server::LocalQueryServer::documentVectors const std::vector< lemur::api::DOCID_T > &  documentIDs  )  [virtual]
 

Implements indri::server::QueryServer.

std::vector< std::string > indri::server::LocalQueryServer::fieldList  )  [virtual]
 

Implements indri::server::QueryServer.

indri::server::QueryServerMetadataResponse * indri::server::LocalQueryServer::pathNames const std::vector< lemur::api::DOCID_T > &  documentIDs,
const std::vector< int > &  pathBegins,
const std::vector< int > &  pathEnds
[virtual]
 

Implements indri::server::QueryServer.

indri::server::QueryServerResponse * indri::server::LocalQueryServer::runQuery std::vector< indri::lang::Node * > &  roots,
int  resultsRequested,
bool  optimize
[virtual]
 

Implements indri::server::QueryServer.

void indri::server::LocalQueryServer::setMaxWildcardTerms int  maxTerms  )  [virtual]
 

sets the maximum number of terms to be generated for a wildcard term. If the synonym list is greater than this, an exception will be thrown

Parameters:
maxTerms the maximum number of terms

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::stemCount const std::string &  stem  )  [virtual]
 

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::stemFieldCount const std::string &  stem,
const std::string &  field
[virtual]
 

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::termCount const std::string &  term  )  [virtual]
 

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::termCount  )  [virtual]
 

Implements indri::server::QueryServer.

INT64 indri::server::LocalQueryServer::termFieldCount const std::string &  term,
const std::string &  field
[virtual]
 

Implements indri::server::QueryServer.

lemur::api::TERMID_T indri::server::LocalQueryServer::termID const std::string &  term  )  [virtual]
 

Implements indri::server::QueryServer.

std::string indri::server::LocalQueryServer::termName lemur::api::TERMID_T  term  )  [virtual]
 

Implements indri::server::QueryServer.


Member Data Documentation

indri::lang::ListCache indri::server::LocalQueryServer::_cache [private]
 

int indri::server::LocalQueryServer::_maxWildcardMatchesPerTerm [private]
 

bool indri::server::LocalQueryServer::_optimizeParameter [private]
 

indri::collection::Repository& indri::server::LocalQueryServer::_repository [private]
 


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