#include <LemurIndriIndex.hpp>
Inheritance diagram for lemur::index::LemurIndriIndex:

Public Member Functions | |
| LemurIndriIndex () | |
| Create. | |
| virtual | ~LemurIndriIndex () |
| lemur::api::DocInfoList * | docInfoList (lemur::api::TERMID_T termID) const |
| doc entries in a term index with positions, DocList | |
| lemur::api::TermInfoList * | termInfoList (lemur::api::DOCID_T docID) const |
| word entries in a document index (bag of words), TermList | |
| lemur::api::TermInfoList * | termInfoListSeq (lemur::api::DOCID_T docID) const |
| word entries in a document index (sequence of words), TermList | |
| const lemur::api::DocumentManager * | docManager (lemur::api::DOCID_T docID) const |
| const string & | getRepositoryName () const |
| const int | field (std::string fieldName) const |
| Convert a field name to a field ID (for those index types that support fields). | |
| const int | field (const char *fieldName) const |
| Convert a field name to a field ID (for those index types that support fields). | |
| const std::string | field (int fieldID) const |
| Convert a field ID to a field name (for those index types that support fields). | |
| virtual lemur::api::FieldInfoList * | fieldInfoList (lemur::api::DOCID_T docID) const |
| virtual lemur::api::FieldInfoList * | fieldInfoList (lemur::api::DOCID_T docID, int fieldID) const |
| virtual std::vector< std::string > | documentMetadata (const std::vector< lemur::api::DOCID_T > &documentIDs, const std::string &attributeName) |
| Fetch the named metadata attribute for a list of document ids. | |
| virtual std::vector< std::string > | documentMetadata (lemur::api::DOCID_T documentID, const std::string &attributeName) |
| Fetch the named metadata attribute for a single document id. | |
Open index | |
| bool | open (const std::string &indexName) |
| Open previously created Repository with given prefix. | |
| bool | open (const char *indexName) |
| Open previously created Repository with given prefix. | |
| void | close () |
| close the Repository | |
Spelling and index conversion | |
| lemur::api::TERMID_T | term (const lemur::api::TERM_T &word) const |
| Convert a term spelling to a termID. | |
| const lemur::api::TERM_T | term (lemur::api::TERMID_T termID) const |
| Convert a termID to its spelling. | |
| lemur::api::DOCID_T | document (const lemur::api::EXDOCID_T &docIDStr) const |
| Convert a spelling to docID. | |
| const lemur::api::EXDOCID_T | document (lemur::api::DOCID_T docID) const |
| Convert a docID to its spelling. | |
Summary counts | |
| lemur::api::COUNT_T | docCount () const |
| Total count (i.e., number) of documents in collection. | |
| lemur::api::COUNT_T | termCountUnique () const |
| Total count of unique terms in collection. | |
| lemur::api::COUNT_T | termCount (lemur::api::TERMID_T termID) const |
| Total counts of a term in collection. | |
| lemur::api::COUNT_T | termCount () const |
| Total counts of all terms in collection. | |
| float | docLengthAvg () const |
| Average document length. | |
| lemur::api::COUNT_T | docCount (lemur::api::TERMID_T termID) const |
| Total counts of doc with a given term. | |
| lemur::api::COUNT_T | docLength (lemur::api::DOCID_T documentID) const |
| return length of the document | |
Private Member Functions | |
| indri::index::Index * | _indexWithDocument (indri::collection::Repository::index_state &indexes, lemur::api::DOCID_T documentID) const |
Private Attributes | |
| indri::collection::Repository * | _repository |
| string | _repositoryName |
| lemur::api::DocumentManager * | _docMgr |
|
|
Create.
|
|
|
|
|
||||||||||||
|
|
|
|
close the Repository
|
|
|
Total counts of doc with a given term.
Implements lemur::api::Index. |
|
|
Total count (i.e., number) of documents in collection.
Implements lemur::api::Index. |
|
|
doc entries in a term index with positions, DocList
Implements lemur::api::Index. |
|
|
return length of the document
Implements lemur::api::Index. |
|
|
Average document length.
Implements lemur::api::Index. |
|
|
A String identifier for the document manager to get at the source of the document with this document id Reimplemented from lemur::api::Index. |
|
|
Convert a docID to its spelling.
Implements lemur::api::Index. |
|
|
Convert a spelling to docID.
|
|
||||||||||||
|
Fetch the named metadata attribute for a single document id.
Reimplemented from lemur::api::Index. |
|
||||||||||||
|
Fetch the named metadata attribute for a list of document ids.
Reimplemented from lemur::api::Index. |
|
|
Convert a field ID to a field name (for those index types that support fields).
Reimplemented from lemur::api::Index. |
|
|
Convert a field name to a field ID (for those index types that support fields).
Reimplemented from lemur::api::Index. |
|
|
Convert a field name to a field ID (for those index types that support fields).
Reimplemented from lemur::api::Index. |
|
||||||||||||
|
returns a new instance of FieldInfoList which represents field entities in a document index for a specific field, you must delete the instance later.
Reimplemented from lemur::api::Index. |
|
|
returns a new instance of FieldInfoList which represents all field entities in a document index, you must delete the instance later.
Reimplemented from lemur::api::Index. |
|
|
|
|
|
Open previously created Repository with given prefix.
|
|
|
Open previously created Repository with given prefix.
|
|
|
Convert a termID to its spelling.
Implements lemur::api::Index. |
|
|
Convert a term spelling to a termID.
|
|
|
Total counts of all terms in collection.
Implements lemur::api::Index. |
|
|
Total counts of a term in collection.
Implements lemur::api::Index. |
|
|
Total count of unique terms in collection.
Implements lemur::api::Index. |
|
|
word entries in a document index (bag of words), TermList
Implements lemur::api::Index. |
|
|
word entries in a document index (sequence of words), TermList
Reimplemented from lemur::api::Index. |
|
|
|
|
|
|
|
|
|
1.3.4