LimitedTextContentExtractor
. Will no longer be available via OSGI as public api.public class LimitedTextContentExtractor
extends com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
DefaultTextContentExtractor
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:
AttachmentExtractedTextExtractor
Constructor and Description |
---|
LimitedTextContentExtractor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
extractText(InputStream is,
com.atlassian.bonnie.search.SearchableAttachment attachment)
Deprecated.
|
shouldExtractFrom
protected String extractText(InputStream is, com.atlassian.bonnie.search.SearchableAttachment attachment)
extractText
in class com.atlassian.bonnie.search.extractor.DefaultTextContentExtractor
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences