Document
Contents
[
Hide
]
Document class
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
Properties
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. |
Methods
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 . |
Remarks
Learn more
See Also
- namespace GroupDocs.Search.Common
- assembly GroupDocs.Search