Document object representing one item of retrieval. A document can be manually composed of its sub parts or it can be the result of an analyzer run.
More...
#include <bindingObjects.hpp>
|
| | Document () |
| | Default constructor. More...
|
| |
| | Document (const Document &o) |
| | Copy constructor. More...
|
| |
| void | addSearchIndexTerm (const String &type, const String &value, const Index &position) |
| | Add a single term occurrence to the document for retrieval. More...
|
| |
| void | addForwardIndexTerm (const String &type, const String &value, const Index &position) |
| | Add a single term occurrence to the document for use in the summary of a retrieval result. More...
|
| |
| void | setMetaData (const String &name, double value) |
| | Define a meta data value of the document. More...
|
| |
| void | setMetaData (const String &name, int value) |
| | Define a meta data value of the document. More...
|
| |
| void | setMetaData (const String &name, unsigned int value) |
| | Define a meta data value of the document. More...
|
| |
| void | setAttribute (const String &name, const String &value) |
| | Define an attribute of the document. More...
|
| |
| void | setUserAccessRight (const String &username) |
| | Allow a user to access the document. More...
|
| |
| void | setDocid (const String &docid_) |
| | Set the document identifier (docid) of the document. More...
|
| |
| const TermVector & | searchIndexTerms () const |
| | Get the list of search terms of the document. More...
|
| |
| const TermVector & | forwardIndexTerms () const |
| | Get the list of forward terms of the document. More...
|
| |
| const MetaDataVector & | metaData () const |
| | Get the list of meta data of the document. More...
|
| |
| const AttributeVector & | attributes () const |
| | Get the list of attributes of the document. More...
|
| |
| const StringVector & | users () const |
| | Get the list of users that are allowed to access the document. More...
|
| |
| const String & | docid () const |
| | Get the document identifier (docid) of the document. More...
|
| |
Document object representing one item of retrieval. A document can be manually composed of its sub parts or it can be the result of an analyzer run.
| net::strus::api::Document::Document |
( |
| ) |
|
|
inline |
| net::strus::api::Document::Document |
( |
const Document & |
o | ) |
|
| void net::strus::api::Document::addForwardIndexTerm |
( |
const String & |
type, |
|
|
const String & |
value, |
|
|
const Index & |
position |
|
) |
| |
Add a single term occurrence to the document for use in the summary of a retrieval result.
- Parameters
-
| [in] | type | term type name of the forward index term |
| [in] | value | term value of the forward index term |
| [in] | position | word count position of the forward index term |
| void net::strus::api::Document::addSearchIndexTerm |
( |
const String & |
type, |
|
|
const String & |
value, |
|
|
const Index & |
position |
|
) |
| |
Add a single term occurrence to the document for retrieval.
- Parameters
-
| [in] | type | term type name of the search index term |
| [in] | value | term value of the search index term |
| [in] | position | word count position of the search index term |
| const AttributeVector& net::strus::api::Document::attributes |
( |
| ) |
const |
|
inline |
Get the list of attributes of the document.
- Returns
- the list of attributes
| const String& net::strus::api::Document::docid |
( |
| ) |
const |
|
inline |
Get the document identifier (docid) of the document.
- Returns
- the document identifier
| const TermVector& net::strus::api::Document::forwardIndexTerms |
( |
| ) |
const |
|
inline |
Get the list of forward terms of the document.
- Returns
- the list of terms
| const MetaDataVector& net::strus::api::Document::metaData |
( |
| ) |
const |
|
inline |
Get the list of meta data of the document.
- Returns
- the list of meta data definitions
| const TermVector& net::strus::api::Document::searchIndexTerms |
( |
| ) |
const |
|
inline |
Get the list of search terms of the document.
- Returns
- the list of terms
| void net::strus::api::Document::setAttribute |
( |
const String & |
name, |
|
|
const String & |
value |
|
) |
| |
Define an attribute of the document.
- Parameters
-
| [in] | name | name of the document attribute |
| [in] | value | value of the document attribute |
| void net::strus::api::Document::setDocid |
( |
const String & |
docid_ | ) |
|
Set the document identifier (docid) of the document.
- Parameters
-
| [in] | docid_ | document identifier of this document |
| void net::strus::api::Document::setMetaData |
( |
const String & |
name, |
|
|
double |
value |
|
) |
| |
Define a meta data value of the document.
- Parameters
-
| [in] | name | name of the meta data table element |
| [in] | value | value of the meta data table element |
| void net::strus::api::Document::setMetaData |
( |
const String & |
name, |
|
|
int |
value |
|
) |
| |
Define a meta data value of the document.
- Parameters
-
| [in] | name | name of the meta data table element |
| [in] | value | value of the meta data table element |
| void net::strus::api::Document::setMetaData |
( |
const String & |
name, |
|
|
unsigned int |
value |
|
) |
| |
Define a meta data value of the document.
- Parameters
-
| [in] | name | name of the meta data table element |
| [in] | value | value of the meta data table element |
| void net::strus::api::Document::setUserAccessRight |
( |
const String & |
username | ) |
|
Allow a user to access the document.
- Parameters
-
| [in] | username | name of the user to be allowed to access this document |
| const StringVector& net::strus::api::Document::users |
( |
| ) |
const |
|
inline |
Get the list of users that are allowed to access the document.
- Returns
- the list of users allowed to access this document
The documentation for this class was generated from the following file: