auto completion API based on Node.js and Thrift service