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:
using(IDocInfo doc = DocInfo.Create(task.TaskConfig, "http://www.example.com/testDocument.doc")) { doc.Document.AddFieldValue("MyField", "My New Value"); task.Ingester.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
.