prepare text search and credit