Document
Leave feedback
On this page
Represents the base class for documents added to an index from file system, stream, or structure. Contains static methods for creating documents from different types of sources.
public abstract class Document
| Name | Description |
|---|---|
| virtual AdditionalFields { get; set; } | Gets or sets the additional fields for the document. |
| virtual Attributes { get; set; } | Gets or sets the attributes of the document. |
| abstract DocumentKey { get; } | Gets the document key that is used to identify the document within an index. |
| abstract DocumentSourceKind { get; } | Gets the document source kind. |
| abstract Extension { get; } | Gets the extension used for this document type. |
| abstract IsLazy { get; } | Gets a value indicating whether the document is loaded as needed or not. |
| abstract ModificationDate { get; } | Gets the last modification date of the document. |
| Name | Description |
|---|---|
| static CreateFromFile(string) | Creates a document from a file. |
| static CreateFromStream(string, DateTime, string, Stream) | Creates a document from a stream. |
| static CreateFromStructure(string, DateTime, DocumentField[]) | Creates a document from a structure that is an array of text fields. |
| static CreateLazy(DocumentSourceKind, string, IDocumentLoader) | Creates a lazy-loaded document. |
| override ToString() | Returns a String that represents the current Document. |
Learn more
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.