ConnectorLib Java 25.1
ConnectorLib Java SDK Programming Guide

# Create Metadata-only Documents

To create a document that has metadata but no file, use a different overload of the `com.autonomy.connector.DocInfo` constructor:

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

You might create a metadata-only document when items in a repository do not include file data (for example, appointments in a calendar, tasks in a task list or rows in a table). Alternatively, you might create a metadata-only document and then assign a file to it later:

           DocInfo.DocFile docFile = new DocInfo.DocFile("testDocument.doc", true);
           doc.setFile(docFile);

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: Create Metadata-only Documents