update code for query by pinyin