Class AttachmentExtractedTextExtractor
- java.lang.Object
 - 
- com.atlassian.confluence.impl.search.v2.extractor.AttachmentExtractedTextExtractor
 
 
- 
- All Implemented Interfaces:
 Extractor2
@Internal public class AttachmentExtractedTextExtractor extends Object implements 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 Modifier and Type Field Description static StringATLASSIAN_INDEXING_ATTACHMENT_MAXSIZEstatic longATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE_DEFAULT 
- 
Constructor Summary
Constructors Constructor Description AttachmentExtractedTextExtractor(AttachmentExtractedTextManager attachmentExtractedTextManager, AttachmentStatusManager attachmentStatusManager, ApplicationStatusService applicationStatusService, AttachmentTextExtractionService remoteAttachmentTextExtractionService, PluginAttachmentTextExtractorsProvider pluginAttachmentTextExtractorsProvider, ShouldExtractAttachmentTextPredicate shouldExtractAttachmentTextPredicate) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FieldDescriptor>extractFields(Object searchable)Extract fields from the searchable object.StringBuilderextractText(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 longgetAttachmentSizeLimit() 
 - 
 
- 
- 
Field Detail
- 
ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE
public static final String ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE
- See Also:
 - Constant Field Values
 
 
- 
ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE_DEFAULT
public static final long ATLASSIAN_INDEXING_ATTACHMENT_MAXSIZE_DEFAULT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
AttachmentExtractedTextExtractor
public AttachmentExtractedTextExtractor(AttachmentExtractedTextManager attachmentExtractedTextManager, AttachmentStatusManager attachmentStatusManager, ApplicationStatusService applicationStatusService, AttachmentTextExtractionService remoteAttachmentTextExtractionService, PluginAttachmentTextExtractorsProvider pluginAttachmentTextExtractorsProvider, ShouldExtractAttachmentTextPredicate shouldExtractAttachmentTextPredicate)
 
 - 
 
- 
Method Detail
- 
getAttachmentSizeLimit
protected static long getAttachmentSizeLimit()
 
- 
extractText
public StringBuilder extractText(Object searchable)
Description copied from interface:Extractor2Returns 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:
 extractTextin 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
public Collection<FieldDescriptor> extractFields(Object searchable)
Description copied from interface:Extractor2Extract fields from the searchable object.- Specified by:
 extractFieldsin interfaceExtractor2- Parameters:
 searchable- a searchable object- Returns:
 - list of fields extracted from the searchable object
 
 
 - 
 
 -