| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
Optional<String> | ➖ | The Glean Document ID. | |
datasource |
Optional<String> | ➖ | The app or other repository type from which the document was extracted | |
connectorType |
Optional<ConnectorType> | ➖ | The source from which document content was pulled, e.g. an API crawl or browser history | |
docType |
Optional<String> | ➖ | The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). | |
content |
Optional<DocumentContent> | ➖ | N/A | |
containerDocument |
Optional<Document> | ➖ | N/A | |
parentDocument |
Optional<Document> | ➖ | N/A | |
title |
Optional<String> | ➖ | The title of the document. | |
url |
Optional<String> | ➖ | A permalink for the document. | |
metadata |
Optional<DocumentMetadata> | ➖ | N/A | { "container": "container", "parentId": "JIRA_EN-1337", "createTime": "2000-01-23T04:56:07.000Z", "datasource": "datasource", "author": { "name": "name" }, "documentId": "documentId", "updateTime": "2000-01-23T04:56:07.000Z", "mimeType": "mimeType", "objectType": "Feature Request", "components": [ "Backend", "Networking" ], "status": [ "Done" ], "customData": { "someCustomField": "someCustomValue" } } |
sections |
List<DocumentSection> | ➖ | A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. |