public class TextOptions extends Object implements ITextOptions
Learn more
| Modifier and Type | Field and Description |
|---|---|
protected ITextOptions |
core |
| Modifier | Constructor and Description |
|---|---|
|
TextOptions()
Initializes a new instance of the
TextOptions class. |
protected |
TextOptions(ITextOptions options)
Initializes a new instance of the
TextOptions class. |
|
TextOptions(Object data)
Initializes a new instance of the
TextOptions class. |
protected |
TextOptions(Object state1,
Object state2)
Initializes a new instance of the
TextOptions class. |
| Modifier and Type | Method and Description |
|---|---|
DocumentField[] |
getAdditionalFields()
Gets the additional document fields that was used for indexing.
|
Cancellation |
getCancellation()
Gets the cancellation object.
|
Object |
getCore() |
IFieldExtractor |
getCustomExtractor()
Gets the custom text extractor that was used for indexing.
|
boolean |
getGenerateHead()
Gets a value indicating whether the Head tag is generated in the output HTML.
|
ImageIndexingOptions |
getImageIndexingOptions()
Gets the image indexing options for reverse image search.
|
MetadataIndexingOptions |
getMetadataIndexingOptions()
Gets the options for indexing metadata fields.
|
OcrIndexingOptions |
getOcrIndexingOptions()
Gets the options for OCR processing and indexing recognized text.
|
boolean |
getUseRawTextExtraction()
Gets a value indicating whether the raw mode is used for text extraction if possible.
|
void |
setAdditionalFields(DocumentField[] value)
Sets the additional document fields that was used for indexing.
|
void |
setCancellation(Cancellation value)
Sets the cancellation object.
|
void |
setCustomExtractor(IFieldExtractor value)
Sets the custom text extractor that was used for indexing.
|
void |
setGenerateHead(boolean value)
Sets a value indicating whether the Head tag is generated in the output HTML.
|
void |
setUseRawTextExtraction(boolean value)
Sets a value indicating whether the raw mode is used for text extraction if possible.
|
protected final ITextOptions core
public TextOptions()
TextOptions class.protected TextOptions(ITextOptions options)
TextOptions class.options - The text options.public TextOptions(Object data)
TextOptions class.data - The serialized data.public DocumentField[] getAdditionalFields()
null.
Note that this value is used only if document text was not saved into the index.getAdditionalFields in interface ITextOptionspublic Cancellation getCancellation()
null.getCancellation in interface ITextOptionspublic Object getCore()
public IFieldExtractor getCustomExtractor()
null.
Note that this value is used only if document text was not saved into the index.getCustomExtractor in interface ITextOptionspublic boolean getGenerateHead()
true.getGenerateHead in interface ITextOptionspublic ImageIndexingOptions getImageIndexingOptions()
getImageIndexingOptions in interface ITextOptionspublic MetadataIndexingOptions getMetadataIndexingOptions()
getMetadataIndexingOptions in interface ITextOptionspublic OcrIndexingOptions getOcrIndexingOptions()
getOcrIndexingOptions in interface ITextOptionspublic boolean getUseRawTextExtraction()
true.
The raw mode can significantly increase the indexing speed, but normal mode improves the formatting of the extracted text.getUseRawTextExtraction in interface ITextOptionspublic void setAdditionalFields(DocumentField[] value)
null.
Note that this value is used only if document text was not saved into the index.setAdditionalFields in interface ITextOptionsvalue - The additional document fields that was used for indexing.public void setCancellation(Cancellation value)
null.setCancellation in interface ITextOptionsvalue - The cancellation object.public void setCustomExtractor(IFieldExtractor value)
null.
Note that this value is used only if document text was not saved into the index.setCustomExtractor in interface ITextOptionsvalue - The custom text extractor that was used for indexing.public void setGenerateHead(boolean value)
true.setGenerateHead in interface ITextOptionsvalue - A value indicating whether the Head tag is generated in the output HTML.public void setUseRawTextExtraction(boolean value)
true.
The raw mode can significantly increase the indexing speed, but normal mode improves the formatting of the extracted text.setUseRawTextExtraction in interface ITextOptionsvalue - A value indicating whether the raw mode is used for text extraction if possible.Copyright © 2026. All rights reserved.