diff --git a/src/main/java/org/elasticsearch/index/mapper/attachment/AttachmentMapper.java b/src/main/java/org/elasticsearch/index/mapper/attachment/AttachmentMapper.java index 50373e26a7e..bd3aa1e5560 100644 --- a/src/main/java/org/elasticsearch/index/mapper/attachment/AttachmentMapper.java +++ b/src/main/java/org/elasticsearch/index/mapper/attachment/AttachmentMapper.java @@ -458,7 +458,7 @@ public class AttachmentMapper extends AbstractFieldMapper { } } // Set the maximum length of strings returned by the parseToString method, -1 sets no limit - parsedContent = tika.parseToString(new BytesStreamInput(content, false), metadata, indexedChars); + parsedContent = tika.parseToString(new BytesStreamInput(content), metadata, indexedChars); } catch (Throwable e) { // It could happen that Tika adds a System property `sun.font.fontmanager` which should not happen // TODO Remove when this will be fixed in Tika. See https://issues.apache.org/jira/browse/TIKA-1548