search ngram index via multi threads