Retrieving documents from the Post-processor repository > Manually submitting a query to retrieve documents > Adding and modifying metadata when manually submitting a query

Adding and modifying metadata when manually submitting a query
You can add and modify metadata associated with documents that you retrieve from the post-processing repository. For example, if information is available about documents that was not available at the time the documents were stored in the repository, you can add this information and associate it with the retrieved documents.
To add or modify metadata, you must edit or create a new query file using a text tool or configure an XMLOUT Process to generate the query file.
Note:
You use gmi tags to add or modify the metadata. The gmi tag has the following syntax:
<gmi name="<name>" value="<value>" type="<str>" oper="<set>"/>
Where:
<name>
<value>
<type>
<oper>
add – adds new metadata to the document. If the metadata already exists, it is not replaced with the new value.
replace – replaces existing metadata
set – adds new metadata to the document. If the metadata already exists, it is replaced with the new value.
You can add gmi tags on job level and on document level. On job level, you must add the gmi tags directly after the jobset tag. On document level, you must add the gmi tags directly after the docset tag.
Example 1
<s-dbs action="process">
<database SERVER="LOCAL" name="my_repository" user=" " password=" ">
<jobset sel="ID=10">
    <gmi name="zipcode" value=$zip type ="num" oper="set"/>
    <docset sel="ID=23">
         <gmi name="Key1" value=$key1 type="num" oper="add"/>
         <gmi name="Key2" value=$key2 type="str" oper="replace"/>
    </docset>
    <docset sel="ID=124">
         <gmi name="Key1" value=$key1 type="num" oper="add"/>
         <gmi name="Key2" value=$key2 type="str" oper="set"/>
    </docset>
</jobset>
</database>
/s-dbs>
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01