Cleanup: Remove unsafe field in BytesStreamInput
Related to https://github.com/elastic/elasticsearch/pull/10157 BytesStreamInput does not support anymore `BytesStreamInput(byte[], boolean)` Closes #120.
This commit is contained in:
parent
3154510fad
commit
cbad7dce76
|
@ -458,7 +458,7 @@ public class AttachmentMapper extends AbstractFieldMapper<Object> {
|
|||
}
|
||||
}
|
||||
// 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
|
||||
|
|
Loading…
Reference in New Issue