|
Public Methods |
| QueryEnvironment () |
| ~QueryEnvironment () |
void | setMemory (UINT64 memory) |
| Set the amount of memory to use.
|
void | setScoringRules (const std::vector< std::string > &rules) |
| Set the scoring rules.
|
void | setStopwords (const std::vector< std::string > &stopwords) |
| Set the stopword list for query processing.
|
void | addServer (const std::string &hostname) |
| Add a remote server.
|
void | addIndex (const std::string &pathname) |
| Add a local repository.
|
void | close () |
| Close the QueryEnvironment.
|
std::vector< ScoredExtentResult > | runQuery (const std::string &query, int resultsRequested) |
| Run an Indri query language query. - See also:
-
ScoredExtentResult.
|
std::vector< ScoredExtentResult > | runQuery (const std::string &query, const std::vector< DOCID_T > &documentSet, int resultsRequested) |
QueryAnnotation * | runAnnotatedQuery (const std::string &query, int resultsRequested) |
| Run an Indri query language query. - See also:
-
QueryAnnotation.
|
QueryAnnotation * | runAnnotatedQuery (const std::string &query, const std::vector< DOCID_T > &documentSet, int resultsRequested) |
std::vector< ParsedDocument * > | documents (const std::vector< DOCID_T > &documentIDs) |
| Fetch the parsed documents for a given list of document ids. Caller is responsible for deleting the returned elements.
|
std::vector< ParsedDocument * > | documents (const std::vector< ScoredExtentResult > &results) |
| Fetch the parsed documents for a given list of ScoredExtentResults Caller is responsible for deleting the returned elements.
|
std::vector< std::string > | documentMetadata (const std::vector< DOCID_T > &documentIDs, const std::string &attributeName) |
| Fetch the named metadata attribute for a list of document ids.
|
std::vector< std::string > | documentMetadata (const std::vector< ScoredExtentResult > &documentIDs, const std::string &attributeName) |
| Fetch the named metadata attribute for a list of ScoredExtentResults.
|
INT64 | termCount () |
| Return total number of terms.
|
INT64 | termCount (const std::string &term) |
| Return total number of term occurrences.
|
INT64 | stemCount (const std::string &term) |
| Return total number of stem occurrences.
|
INT64 | termFieldCount (const std::string &term, const std::string &field) |
| Return total number of term occurrences within a field.
|
INT64 | stemFieldCount (const std::string &term, const std::string &field) |
| Return total number of stem occurrences within a field.
|
std::vector< std::string > | fieldList () |
| Return the list of fields.
|
INT64 | documentCount () |
| Return total number of documents in the collection.
|
INT64 | documentCount (const std::string &term) |
std::vector< DocumentVector * > | documentVectors (const std::vector< DOCID_T > &documentIDs) |
| Fetch a document vector for a list of documents. Caller responsible for deleting the Vector.
|
Principal class for interacting with Indri indexes during retrieval. Provides the API for opening one or more Repository servers, either local or remote. Provides the API for querying the servers with the Indri query language, and additionally requesting aggregate collection statistics.
QueryEnviroment parameters.