While trying to index an email attachment, the following error is thrown from Solr:
Caused by: org.apache.poi.util.RecordFormatException: Tried to allocate an array of length 1235904, but 1000000 is the maximum for this record type.
If the file is not corrupt, please open an issue on bugzilla to request
increasing the maximum allowable size for this record type.
As a temporary workaround, consider setting a higher override value with IOUtils.setByteArrayMaxOverride()
at org.apache.poi.util.IOUtils.throwRFE(IOUtils.java:568)
at org.apache.poi.util.IOUtils.checkLength(IOUtils.java:175)
at org.apache.poi.util.IOUtils.safelyAllocate(IOUtils.java:547)
at org.apache.poi.hmef.attribute.MAPIRtfAttribute.<init>(MAPIRtfAttribute.java:49)
at org.apache.tika.parser.microsoft.OutlookExtractor.handleBodyChunks(OutlookExtractor.java:328)
at org.apache.tika.parser.microsoft.OutlookExtractor.parse(OutlookExtractor.java:247)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:199)
at org.apache.tika.parser.microsoft.OfficeParser.parse(OfficeParser.java:131)
at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
... 14 common frames omitted
The email attachment is 2.4 MB. Is there anyway to configure the limit in the error?