Do we really need the Tika analysis?
Yes, we do, being able to search in office and PDF files is an essential feature of XWiki.
https://tika.apache.org/3.1.0/api/org/apache/tika/fork/ForkParser.html sounds interesting to limit the impact of an OOM.