fixed mysql thread stack issue in search controller