Open topic with navigation

# 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 KeyView to extract content and additional metadata from the document file. CFS then sends the document to an instance of IDOL 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.

© 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