This page gives you information on how content and language detection works with Apache Tika, and how to tune the behaviour of Tika.