DocumentInfo class

DocumentInfo class

Represents a descriptor for an indexed document.

Learn more

The DocumentInfo type exposes the following members:

Methods

Method Description
deserialize Deserializes a DocumentInfo instance from a byte array.
serialize Serializes the current instance to a byte array.
to_string Returns a string that represents the current DocumentInfo.

Properties

Property Description
document_source_kind The document source kind.
file_path The file path for a document indexed from a file, or the document key for a document indexed from a stream or structure.
file_type The file type.
format_family The document format family.
indexed_with_error The indicator of indexing error.
inner_path The inner path for the container document item.
inner_path_parts The inner path parts for the container document item.
modification_time The modification time of the document.

Example

from groupdocs.search import Index

index = Index("./index")
for doc in index.get_indexed_documents():
    print(doc.file_path)

See Also