TextOptions class

TextOptions class

Provides options for retrieving document text from an index.

The TextOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the TextOptions class.

Properties

Property Description
additional_fields The additional document fields that was used for indexing. The default value is None.
cancellation The cancellation object. The default value is None.
custom_extractor The custom text extractor that was used for indexing. The default value is None. This value is used only if document text was not saved into the index.
generate_head The generate_head property indicates whether the Head tag is generated in the output HTML.
auto_detect_encoding The auto_detect_encoding flag indicates whether to detect encoding automatically. The default value is False. (inherited from BaseOptions)
encoding The encoding used to extract text from text documents. The default is None, which means UTF-8 is used. If AutoDetectEncoding is True, this value serves as the default encoding. (inherited from BaseOptions)
image_indexing_options The image indexing options for reverse image search. (inherited from BaseOptions)
metadata_indexing_options The options for indexing metadata fields. (inherited from BaseOptions)
ocr_indexing_options The options for OCR processing and indexing recognized text. (inherited from BaseOptions)
use_backup_privilege The property indicates whether the process should use the SeBackupPrivilege and FILE_FLAG_BACKUP_SEMANTICS to access files and directories. The default value is False. True enables privileged access using SeBackupPrivilege and FILE_FLAG_BACKUP_SEMANTICS; otherwise, False. (inherited from BaseOptions)
use_raw_text_extraction The property indicates whether raw text extraction mode is used if possible. The default is False; raw mode can significantly increase indexing speed, while normal mode improves formatting of extracted text. (inherited from BaseOptions)

See Also