10 #ifndef _STRUS_STORAGE_DOCUMENT_INTERFACE_HPP_INCLUDED
11 #define _STRUS_STORAGE_DOCUMENT_INTERFACE_HPP_INCLUDED
14 #include "strus/numericVariant.hpp"
32 const std::string& type_,
33 const std::string& value_,
34 const Index& position_)=0;
42 const std::string& struct_,
52 const std::string& type_,
53 const std::string& value_,
54 const Index& position_)=0;
62 const std::string& name_,
63 const NumericVariant& value_)=0;
70 const std::string& name_,
71 const std::string& value_)=0;
80 const std::string& username_)=0;
83 virtual void done()=0;
virtual void done()=0
Closing the document definition.
int32_t Index
Number type generally used for locally counted indices.
Definition: index.hpp:29
Numeric types used for local and global indices.
Object to declare all items for one insert/replace of a document in the storage.
Definition: storageDocumentInterface.hpp:21
virtual ~StorageDocumentInterface()
Destructor.
Definition: storageDocumentInterface.hpp:25
virtual void setUserAccessRight(const std::string &username_)=0
Allow a user to access the document.
virtual void addForwardIndexTerm(const std::string &type_, const std::string &value_, const Index &position_)=0
Add one occurrence of a term to the forward index for summarization of the document.
virtual void setAttribute(const std::string &name_, const std::string &value_)=0
Define a string attribute of the document.
virtual void addSearchIndexTerm(const std::string &type_, const std::string &value_, const Index &position_)=0
Add one occurrence of a term in the document for retrieval.
virtual void addSearchIndexStructure(const std::string &struct_, const IndexRange &source_, const IndexRange &sink_)=0
Add a structure (relation of ordinal position ranges) in the the document for retrieval.
virtual void setMetaData(const std::string &name_, const NumericVariant &value_)=0
Define a meta data element of the document by name.