Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void Document::add ( Field field  ) 

Adds a field to a document. Several fields may be added with the same name. In this case, if the fields are indexed, their text is treated as though appended for the purposes of search.

Note that add like the removeField(s) methods only makes sense prior to adding a document to an index. These methods cannot be used to change the content of an existing index! In order to achieve this, a document has to be deleted from an index and a new changed version of that document has to be added.

Definition at line 105 of file Document.cpp.

                                     {
            fieldList = _CLNEW DocumentFieldEnumeration::DocumentFieldList(&field, fieldList);
      }


Generated by  Doxygen 1.6.0   Back to index