ConnectorLib Java 25.1
ConnectorLib Java SDK Programming Guide

# Ingest Update

If a document has been ingested previously, and the metadata for the document has changed but the file content has not, you can use the Ingest `Update` method.

This instructs the target to update the metadata for an existing document, but to leave the content intact. The following example updates just the value of `MyField` in the document added in the example for Ingest Add:

           DocInfo doc = new DocInfo(
              task.getTaskConfig(),
              "http://www.example.com/testDocument.doc");

           doc.getDoc().addFieldValue("MyField", "My New Value");
           task.getIngester().update(doc);

The value of the field "MyField" is replaced with "My New Value". The content of the file in the target remains unchanged, as do the values of `SecondField`.

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery ConnectorLib Java 25.1

Topic Title: Ingest Update