Update the metadata of an unstructured document - Fluid Topics - Latest

Unstructured Documents Connector Reference Guide

Category
Reference Guides
Audience
public
Version
Latest

It is possible to update metadata previously assigned to an unstructured document as follows:

  1. Create or edit FluidTopicsControlFile.xml.
  2. Modify the <metas> metadata key.
  3. Upload an archive containing the updated FluidTopicsControlFile.xml file.

Example

The following lines show an example of a control file that updates the metadata of an unstructured document:

<?xml version='1.0' encoding='utf-8'?>
<controlFile>
    <resources>
        <resource>
            <filePath>standard_time_zones_of_the_world.png</filePath>
            <metas>
                <meta key="Audience">
                    <value>Expert</value>
                </meta>
                <meta key="Category">
                    <value>TechDoc</value>
                </meta>
                <!-- Metadata key to add to the document -->
                <meta key="Version">
                    <value>value_1</value>
                </meta>
            </metas>
        </resource>
    </resources>
</controlFile>

In this case, <filePath> is used to identify the document. Indeed, the document is not in the archive and no <originId> was defined for the document. If an <originId> was manually set for the document, it would not be possible to use <filePath>.

It is necessary to keep the <filePath> and <metas> elements from the previously uploaded unstructured document. Indeed, metadata specified in the <metas> node replaces the metadata previously set.

There is no need to include the unstructured files in the archive. Users can upload an archive containing only FluidTopicsControlFile.xml.