How can I search chat history by keyword in real-time manner?