wired the rest service to get messages, ranked results, and topics