Exclude attachments from XWiki SOLR Search Index

Hi, we are experiencing error messages like

2017-09-11 20:47:34,071 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX axdocumentation:Releases.Hardware.WebHome] 
java.lang.OutOfMemoryError: Java heap space
	at org.tukaani.xz.lz.LZDecoder.<init>(Unknown Source)
	at org.tukaani.xz.LZMA2InputStream.<init>(Unknown Source)
	at org.tukaani.xz.LZMA2InputStream.<init>(Unknown Source)
[...]
2017-09-11 20:47:36,524 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer   - Failed to process entry [INDEX Attachment axdocumentation:Releases.Hardware.WebHome@Wago_PFC200_PLC5_20161104_5.4.2500.57.bin.7z] 
java.lang.OutOfMemoryError: Java heap space

The mentioned 7zip Archive is 189MB large.

Is it possible to exclude files above a certain limit (e.g. 30MB) from SOLR Search Index?

Thank you, BR Mario

Interesting. Would you mind opening a jira issue at Log in - XWiki.org JIRA ? Thx