Open topic with navigation

# 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 docInfo = task.docInfoBuilder().createDocInfo(
              "http://www.example.com/testDocument.doc");

           docInfo.doc().metadata().addField("MyField", "My New Value");

           task.ingester().update(docInfo);

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`.

© 2018 Micro Focus or one of its affiliates | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm