Script for apache tika