|
strusAnalyzer
0.17
|
Structure of a document created as result of a document analysis. More...
#include <document.hpp>
Public Member Functions | |
| Document () | |
| Default constructor. More... | |
| Document (const Document &o) | |
| Copy constructor. More... | |
| const std::string & | subDocumentTypeName () const |
| Get the sub document type name. More... | |
| const std::vector < DocumentAttribute > & | attributes () const |
| Get the list of the attributes defined in this document. More... | |
| const std::vector < DocumentMetaData > & | metadata () const |
| Get the list of the metadata defined in this document. More... | |
| const std::vector< DocumentTerm > & | searchIndexTerms () const |
| Get the list of the search index terms defined in this document. More... | |
| const std::vector< DocumentTerm > & | forwardIndexTerms () const |
| Get the list of the forward index terms defined in this document. More... | |
| void | setSubDocumentTypeName (const std::string &n) |
| Set the name of the sub document type as declared in the document analyzer (empty for the main document) More... | |
| void | setAttribute (const std::string &t, const std::string &v) |
| Define an attribute of the document. More... | |
| void | setMetaData (const std::string &t, const NumericVariant &v) |
| Define a meta data element of the document. More... | |
| void | addSearchIndexTerm (const std::string &t, const std::string &v, unsigned int p) |
| Define a search index term of the document. More... | |
| void | addSearchIndexTerms (const std::vector< DocumentTerm > &terms) |
| Define a list of search index terms of the document. More... | |
| void | addForwardIndexTerm (const std::string &t, const std::string &v, unsigned int p) |
| Define a forward index term of the document. More... | |
| void | addForwardIndexTerms (const std::vector< DocumentTerm > &terms) |
| Define a list of forward index terms of the document. More... | |
| void | clear () |
| Clear the document content. More... | |
| void | swap (Document &o) |
| Swap a document structure with another. More... | |
Structure of a document created as result of a document analysis.
|
inline |
Default constructor.
|
inline |
Copy constructor.
|
inline |
Define a forward index term of the document.
| [in] | t | type name of the forward index term |
| [in] | v | value of the forward index term |
| [in] | p | position of the forward index term in the document (token position not byte position) |
|
inline |
Define a list of forward index terms of the document.
| [in] | terms | list of terms to add |
|
inline |
Define a search index term of the document.
| [in] | t | type name of the search index term |
| [in] | v | value of the search index term |
| [in] | p | position of the search index term in the document (token position not byte position) |
|
inline |
Define a list of search index terms of the document.
| [in] | terms | list of terms to add |
|
inline |
Get the list of the attributes defined in this document.
|
inline |
Clear the document content.
|
inline |
Get the list of the forward index terms defined in this document.
|
inline |
Get the list of the metadata defined in this document.
|
inline |
Get the list of the search index terms defined in this document.
|
inline |
Define an attribute of the document.
|
inline |
Define a meta data element of the document.
| [in] | t | name of the meta data element |
| [in] | v | value of the meta data element |
|
inline |
Set the name of the sub document type as declared in the document analyzer (empty for the main document)
|
inline |
Get the sub document type name.
|
inline |
Swap a document structure with another.
1.8.6