Class AttachmentExtractedTextExtractor
java.lang.Object
com.atlassian.confluence.impl.search.v2.extractor.AttachmentExtractedTextExtractor
- All Implemented Interfaces:
Extractor2
Attempts to add an attachment extracted text into default searchable text if it is available, otherwise requests
a text extraction, wait for its completion and reattempt.
- Since:
- 7.14
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAttachmentExtractedTextExtractor
(AttachmentExtractedTextManager attachmentExtractedTextManager, AttachmentStatusManager attachmentStatusManager, ApplicationStatusService applicationStatusService, AttachmentTextExtractionService remoteAttachmentTextExtractionService, PluginAttachmentTextExtractorsProvider pluginAttachmentTextExtractorsProvider, ShouldExtractAttachmentTextPredicate shouldExtractAttachmentTextPredicate) -
Method Summary
Modifier and TypeMethodDescriptionextractFields
(Object searchable) Extract fields from the searchable object.extractText
(Object searchable) Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.protected static long
-
Field Details
-
ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE
- See Also:
-
ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE_DEFAULT
public static final long ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE_DEFAULT- See Also:
-
-
Constructor Details
-
AttachmentExtractedTextExtractor
public AttachmentExtractedTextExtractor(AttachmentExtractedTextManager attachmentExtractedTextManager, @Qualifier("attachmentStatusManager") AttachmentStatusManager attachmentStatusManager, ApplicationStatusService applicationStatusService, @Qualifier("remoteAttachmentTextExtractionService") AttachmentTextExtractionService remoteAttachmentTextExtractionService, PluginAttachmentTextExtractorsProvider pluginAttachmentTextExtractorsProvider, ShouldExtractAttachmentTextPredicate shouldExtractAttachmentTextPredicate)
-
-
Method Details
-
getAttachmentSizeLimit
protected static long getAttachmentSizeLimit() -
extractText
Description copied from interface:Extractor2
Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.- Specified by:
extractText
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.
-
extractFields
Description copied from interface:Extractor2
Extract fields from the searchable object.- Specified by:
extractFields
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- list of fields extracted from the searchable object
-