10 #ifndef _STRUS_STORAGE_DOCUMENT_UPDATE_INTERFACE_HPP_INCLUDED
11 #define _STRUS_STORAGE_DOCUMENT_UPDATE_INTERFACE_HPP_INCLUDED
14 #include "strus/numericVariant.hpp"
33 const std::string& type_,
34 const std::string& value_,
35 const Index& position_)=0;
44 const std::string& struct_,
55 const std::string& type_,
56 const std::string& value_,
57 const Index& position_)=0;
63 const std::string& type_)=0;
69 const std::string& struct_)=0;
75 const std::string& type_)=0;
83 const std::string& name_,
84 const NumericVariant& value_)=0;
91 const std::string& name_,
92 const std::string& value_)=0;
98 const std::string& name_)=0;
107 const std::string& username_)=0;
112 const std::string& username_)=0;
118 virtual void done()=0;
int32_t Index
Number type generally used for locally counted indices.
Definition: index.hpp:29
virtual void clearUserAccessRights()=0
Clear the user rights for all users.
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 setUserAccessRight(const std::string &username_)=0
Allow a user to access the document.
Numeric types used for local and global indices.
virtual void addSearchIndexTerm(const std::string &type_, const std::string &value_, const Index &position_)=0
Add one occurrence of a term to the search index excluding all features of this type previously added...
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 excluding all features of this type previously adde...
virtual void clearForwardIndexTerm(const std::string &type_)=0
Clear all previous occurrencies of a term type in a document in the forward index.
virtual void clearUserAccessRight(const std::string &username_)=0
Disallow a user to access the document.
virtual void clearSearchIndexTerm(const std::string &type_)=0
Clear all previous occurrencies of a term type in a document in the search index. ...
virtual void done()=0
Closing the document definition.
virtual ~StorageDocumentUpdateInterface()
Destructor.
Definition: storageDocumentUpdateInterface.hpp:25
virtual void setAttribute(const std::string &name_, const std::string &value_)=0
Define an attribute (string) of the document.
virtual void setMetaData(const std::string &name_, const NumericVariant &value_)=0
Define a meta data element of the document by name.
virtual void clearAttribute(const std::string &name_)=0
Delete an attribute (string) of the document.
Object to declare the items for an update of a document in the storage.
Definition: storageDocumentUpdateInterface.hpp:21
virtual void clearSearchIndexStructure(const std::string &struct_)=0
Clear all previous occurrencies of a structure in a document in the search index. ...