code for Japanese search query truncation, full-text search and recommendation.