add new algorithm to merge token stream of different languages in the query process