ConnectorLib .NET 25.2
ConnectorLib .NET SDK Programming Guide

# Ingest Add

The Ingest `Add` method adds a new document to the ingestion target. You can create and ingest a document like this:

           using(IDocInfo doc = DocInfo.Create(task.TaskConfig,
                   "http://www.example.com/testDocument.doc",
                   "testDocument.doc", true))
           {
               doc.Document.AddFieldValue("MyField", "My Value");
               doc.Document.AddFieldValue("SecondField", "First value");
               doc.Document.AddFieldValue("SecondField", "Second value");
               task.Ingester.Add(doc);
           }

The last line sends the document for ingestion. In a typical setup using CFS as the ingestion target, CFS uses File Content Extraction to extract content and additional metadata from the document file. CFS then sends the document to a Content component to be added to the index.

In another setup, the ingestion target could be a connector for a different repository. In this case the Add command adds the document to that repository, using the destination connector's `insert` action.

Copyright 2025 Open Text
Version 25.2 | Last updated April 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 .NET 25.2

Topic Title: Ingest Add