Class LimitedTextContentExtractor
- java.lang.Object
-
- com.atlassian.bonnie.search.extractor.BaseAttachmentContentExtractor
-
- com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
-
- com.atlassian.confluence.search.lucene.extractor.LimitedTextContentExtractor
-
- All Implemented Interfaces:
com.atlassian.bonnie.search.Extractor
@Deprecated public class LimitedTextContentExtractor extends com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
Deprecated.since 7.17 forLimitedTextContentExtractor
. Will no longer be available via OSGI as public api.A subclass of Bonnie'sDefaultTextContentExtractor
which places a limit on how many bytes of the input stream are read into memory. This prevents it from potentially reading in huge attachment streams that trigger memory starvation.This may have the side-effect of some content not being indexed if it is to be found "beyond" the limit, but that's preferable to an OOME.
The default value was changed from fixed 10Mb to be in line with the value set for Attachments:
- Since:
- 5.4
- See Also:
AttachmentExtractedTextExtractor
-
-
Constructor Summary
Constructors Constructor Description LimitedTextContentExtractor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected String
extractText(InputStream is, com.atlassian.bonnie.search.SearchableAttachment attachment)
Deprecated.-
Methods inherited from class com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
shouldExtractFrom
-
-
-
-
Method Detail
-
extractText
protected String extractText(InputStream is, com.atlassian.bonnie.search.SearchableAttachment attachment)
Deprecated.- Overrides:
extractText
in classcom.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
-
-